Skip to content

Complete grid search params - #166

Merged
Mec-iS merged 6 commits into
smartcorelib:developmentfrom
postgresml:montana/grid_search_params
Sep 21, 2022
Merged

Mec-iS merged 6 commits into
smartcorelib:developmentfrom
postgresml:montana/grid_search_params

Conversation

@montanalow

Copy link
Copy Markdown
Contributor

Follow up to #154, that similarly adds iterable *SearchParameters for the remaining algorithms, so that they can also be used with hyper_tuning::grid_search().

  • This also includes a cleanup to rename lasso_regression_search_parameters to lasso_search_parameters, that was misnamed in the original grid search #154.
  • Implement Eq for SVM Kernel structs to make them testable with assert_eq!

@montanalow

Copy link
Copy Markdown
Contributor Author

I wanted to get this done before #165, since all of these search params will also require #[serde(default)].

Comment thread src/svm/svc.rs
/// Tolerance for stopping epoch.
pub tol: Vec<T>,
/// The kernel function.
pub kernel: Vec<K>,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the one param that it's currently impossible to meaningfully utilize, since we can't have multiple different K in the same Vec, but we can address that with a follow up PR.

@Mec-iS

Mec-iS commented Sep 21, 2022

Copy link
Copy Markdown
Collaborator

ok just remember we will need your help to port this over to the new paradigm with 108 (;

@Mec-iS
Mec-iS merged commit 48514d1 into smartcorelib:development Sep 21, 2022
@montanalow

Copy link
Copy Markdown
Contributor Author

ok just remember we will need your help to port this over to the new paradigm with 108 (;

I thought this would be orthogonal to the changes around arrays in 108, but happy to take a look if there is an issue.

@montanalow
montanalow deleted the montana/grid_search_params branch September 21, 2022 20:50
morenol added a commit that referenced this pull request Sep 22, 2022
* Complete grid search params (#166)

* grid search draft

* hyperparam search for linear estimators

* grid search for ensembles

* support grid search for more algos

* grid search for unsupervised algos

* minor cleanup

* Lmm/add seeds in more algorithms (#164)

* Provide better output in flaky tests

* feat: add seed parameter to multiple algorithms

* Update changelog

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>

* add seed param to search params (#168)

* make default params available to serde (#167)

* add seed param to search params

* make default params available to serde

* lints

* create defaults for enums

* lint

Co-authored-by: morenol <22335041+morenol@users.noreply.github.com>
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
morenol pushed a commit that referenced this pull request Nov 8, 2022
* grid search draft

* hyperparam search for linear estimators

* grid search for ensembles

* support grid search for more algos

* grid search for unsupervised algos

* minor cleanup
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

Successfully merging this pull request may close these issues.

2 participants