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

samplers: add MLSurrogateSampler base class #33

Merged
merged 3 commits into from
Jan 3, 2023

Conversation

AldoGl
Copy link
Contributor

@AldoGl AldoGl commented Dec 21, 2022

Proposed changes

Add a base class for all machine learning surrogates.

@AldoGl AldoGl force-pushed the add_surrogate_sampler_class branch 3 times, most recently from 750e470 to 16affa9 Compare December 21, 2022 17:58
@AldoGl AldoGl force-pushed the add_surrogate_sampler_class branch from 16affa9 to a4f4895 Compare December 21, 2022 18:22
@AldoGl AldoGl changed the title samplers: add MLSurrogateSampler base class (WIP) samplers: add MLSurrogateSampler base class Dec 21, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 21, 2022

Codecov Report

Merging #33 (5f3c9a5) into main (a12b685) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   97.14%   97.21%   +0.07%     
==========================================
  Files          28       29       +1     
  Lines        1434     1435       +1     
==========================================
+ Hits         1393     1395       +2     
+ Misses         41       40       -1     
Impacted Files Coverage Δ
black_it/samplers/cors.py 93.75% <ø> (ø)
black_it/samplers/particle_swarm.py 92.22% <ø> (ø)
black_it/samplers/base.py 100.00% <100.00%> (ø)
black_it/samplers/gaussian_process.py 98.61% <100.00%> (-0.20%) ⬇️
black_it/samplers/random_forest.py 100.00% <100.00%> (ø)
black_it/samplers/surrogate.py 100.00% <100.00%> (ø)
black_it/samplers/xgboost.py 100.00% <100.00%> (+2.00%) ⬆️

Comment on lines 138 to 139
print(params)
print(losses)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! Well spotted, thanks!

Copy link
Contributor

@marcofavoritobi marcofavoritobi left a comment

Choose a reason for hiding this comment

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

Great work! LGTM

@AldoGl AldoGl merged commit eb33225 into main Jan 3, 2023
@marcofavoritobi marcofavoritobi deleted the add_surrogate_sampler_class branch September 25, 2023 08:07
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.

3 participants