now config makes even more sense!

This commit is contained in:
hobogalaxy committed 2020-11-24 15:52:06 +01:00
1 parent f1f9de8537
commit d518ddb63d
6 files changed
+89 -67

No files matched your search

+19 -17
View File
@@ -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