❓ [QUESTION] Sweeping hyperparemeters with Weights and Biases #304
Replies: 3 comments 9 replies
-
Hi @rschireman, Then you can create two config file, one for the sweep hyperparameter and one for the basic config file. For project: {your project name}
program: nequip-train
method: random
name: sweep_1
description: sweep over loss coefficients and batch size
# metric:
# goal: minimize
# name: validation_f_rmse
command:
- ${env}
- ${program}
- ".../base.yaml" # Absolute path of your basic config yaml file
parameters:
batch_size:
distribution: int_uniform
min: 1
max: 5
loss_coeffs:
parameters:
stress:
distribution: uniform
min: 1.0
max: 10.0
total_energy:
value:
- 1.
- PerAtomMSELoss
forces:
distribution: uniform
min: 1
max: 10 Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for posting this info @Hongyu-yu ! An alternative, without modifying the source, would then also be to make your If that is the only modification needed to make it work, alternatively, we could add a |
Beta Was this translation helpful? Give feedback.
-
I'd be interested to see how this was resolved. I originally had a script on <0.5.5 that imported |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm relatively new to the code here, is there a way to use Weights and Biases to sweep hyperparameters (like the batch size, etc.)? I've been using the following code:
and my
sweep_config
looks like this:The first iteration runs fine, but the subsequent runs fail
Beta Was this translation helpful? Give feedback.
All reactions