Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generalise sobol-gridsearch to work with arbitrary data structures #27

Open
behrica opened this issue Jan 4, 2021 · 0 comments
Open

Comments

@behrica
Copy link
Contributor

behrica commented Jan 4, 2021

This opens the path to grid search over pipeline definitions.

Specially it should work to transform this:

[[:ds/select-columns [:Text :Score]]
 [:ds/update-column :Score #(map dec %)]
 [:ds-mod/set-inference-target :Score]
 [:nlp/count-vectorize :Text :bow :nlp/default-text->bow {:stopwords(ml-gs/categorical [nil :default :google :comprehensive]) }]
 [:nb/bow->SparseArray :bow :bow-sparse {:vocab-size (ml-gs/linear 100 10000)}]
 [:ml/train {:model-type   :discrete-naive-bayes
             :discrete-naive-bayes-model :multinomial
             :sparse-column :bow-sparse
             :nb-model-hyper-parameter-x (ml-gs/linear 0.0 1.0)
             }]
]

into a list of "copies" of this data structure, in which the gridsearch definitions are replaced by concrete values.

See discussion here: https://clojurians.zulipchat.com/#narrow/stream/236259-tech.2Eml.2Edataset.2Edev/topic/couple.20tech.2Eml.20to.20tablecloth.20pipeline.20concept.20.3F

@behrica behrica changed the title generalise sobol-ridsearch to work with arbitrary data structures generalise sobol-gridsearch to work with arbitrary data structures Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant