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

yaml, grid search mnist #348

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

yaml, grid search mnist #348

wants to merge 6 commits into from

Conversation

lisab00
Copy link
Collaborator

@lisab00 lisab00 commented Sep 4, 2023

No description provided.

Copy link
Collaborator

@smilesun smilesun left a comment

Choose a reason for hiding this comment

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

does this configuration work with master already?

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 5, 2023

Yes, this already works on the master branch.
I'm still working on adding more models, e.g. hduva.

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 5, 2023

  • matchdg creates an error because the hyperparameters which must be sampled as an int (e.g. epochs_ctr) are converted to a float in the sampling process
  • hduva also does not work (might be caused by the same error?)

@smilesun
Copy link
Collaborator

@lisab00 ,I have merged the shared parameter branch into master, and master into this branch, when you get time, maybe you can test if your yaml file works. I would say it is better to test this yaml file than the pacs. the pacs can be done on Friday so the week after we get the results.

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 14, 2023

image

there seems to be a problem with jigen

2023-09-14T163129.952669.snakemake.log

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

bench_mnist_grid_graphic

@smilesun
Copy link
Collaborator

smilesun commented Sep 15, 2023 via email

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

Should I run this file with 100 epochs on master to compare with fbopt (like you told me on slack)
or should I create a new file contaning all algorithms?

@smilesun
Copy link
Collaborator

smilesun commented Sep 15, 2023 via email

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

I added another file with more algos, but it's not working yet

@smilesun
Copy link
Collaborator

I took a look at the file, shouldn't the file be based on the yaml file Carla has generated yesterday? Since that already include a lot of algorihtms and one only need to change the task and neural network?

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

Which file did Carla create yesterday?

@smilesun
Copy link
Collaborator

Which file did Carla create yesterday?

maybe she did not push to any branch. But i think we could start using your new yaml file to make it work first, if a small one does not work, a big one won't work neither.

@smilesun
Copy link
Collaborator

I added another file with more algos, but it's not working yet

would be great to have the error message so i can look into it as well.

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

image

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

but the hyperparameter sampling itself should work, I tested it on master

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

Also, I based my file on this one: https://github.com/marrlab/DomainLab/blob/master/examples/benchmark/benchmark_pacs_resnet.yaml

I included algos up until line 150, changed dataset and sampling mode

max: 10000
step: 100
num: 2
distribution: uniform
Copy link
Collaborator

Choose a reason for hiding this comment

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

why grid search would have a distribution?

@smilesun
Copy link
Collaborator

Which file did Carla create yesterday?

maybe she did not push to any branch. But i think we could start using your new yaml file to make it work first, if a small one does not work, a big one won't work neither.

@lisab00 , I was wrong, actually she pushed the changes to the master already

https://github.com/marrlab/DomainLab/blob/master/examples/benchmark/benchmark_pacs_resnet.yaml

@smilesun
Copy link
Collaborator

Which file did Carla create yesterday?

maybe she did not push to any branch. But i think we could start using your new yaml file to make it work first, if a small one does not work, a big one won't work neither.

@lisab00 , I was wrong, actually she pushed the changes to the master already

https://github.com/marrlab/DomainLab/blob/master/examples/benchmark/benchmark_pacs_resnet.yaml

but the file is not grid search, so there is distribution

@lisab00
Copy link
Collaborator Author

lisab00 commented Sep 15, 2023

I thought you need distribution for grid search as well
https://github.com/marrlab/DomainLab/blob/master/examples/benchmark/benchmark_mnist_shared_hyper_grid.yaml

@smilesun
Copy link
Collaborator

I thought you need distribution for grid search as well https://github.com/marrlab/DomainLab/blob/master/examples/benchmark/benchmark_mnist_shared_hyper_grid.yaml

I agree, will take some deeper look into it

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0f5c7e4) 95.14% compared to head (8e546d3) 95.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #348   +/-   ##
=======================================
  Coverage   95.14%   95.14%           
=======================================
  Files         124      124           
  Lines        4862     4862           
=======================================
  Hits         4626     4626           
  Misses        236      236           
Flag Coverage Δ
unittests 95.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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