now config makes even more sense!
This commit is contained in:
1 parent
f1f9de8537
commit
d518ddb63d
6 files changed
+89
-67
No files matched your search
+19
-17
@@ -1,18 +1,20 @@
|
||||
import wandb
|
||||
import train
|
||||
# import wandb
|
||||
# import train
|
||||
#
|
||||
#
|
||||
# # Load project config
|
||||
# config = train.load_config()
|
||||
#
|
||||
# # Initialize wandb
|
||||
# wandb.init()
|
||||
#
|
||||
# # Replace project config hyperparameters with the ones loaded from wandb sweep server
|
||||
# sweep_hparams = wandb.Config._as_dict(wandb.config)
|
||||
# for key, value in sweep_hparams.items():
|
||||
# if key != "_wandb":
|
||||
# config["hparams"][key] = value
|
||||
#
|
||||
# # Execute run
|
||||
# train.train(config)
|
||||
|
||||
|
||||
# Load project config
|
||||
config = train.load_config()
|
||||
|
||||
# Initialize wandb
|
||||
wandb.init()
|
||||
|
||||
# Replace project config hyperparameters with the ones loaded from wandb sweep server
|
||||
sweep_hparams = wandb.Config._as_dict(wandb.config)
|
||||
for key, value in sweep_hparams.items():
|
||||
if key != "_wandb":
|
||||
config["hparams"][key] = value
|
||||
|
||||
# Execute run
|
||||
train.train(config)
|
||||
# TODO: this file
|
||||
Reference in new issue
Block a user