Skip to content

Complete grid search params #166

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

Merged

Conversation

montanalow
Copy link
Collaborator

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
Collaborator Author

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

/// Tolerance for stopping epoch.
pub tol: Vec<T>,
/// The kernel function.
pub kernel: Vec<K>,
Copy link
Collaborator 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
Copy link
Collaborator

Mec-iS commented Sep 21, 2022

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
Collaborator 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