Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
·
c63847d
1
Parent(s):
492b9c6
Update train_model.py
Browse files
src/models/train_model.py
CHANGED
@@ -29,6 +29,7 @@ def train_model():
|
|
29 |
model.save_model(model_dir=params['model_dir'])
|
30 |
|
31 |
with open('wandb/latest-run/files/wandb-summary.json') as json_file:
|
|
|
32 |
data = json.load(json_file)
|
33 |
|
34 |
with open('reports/training_metrics.txt', 'w') as fp:
|
|
|
29 |
model.save_model(model_dir=params['model_dir'])
|
30 |
|
31 |
with open('wandb/latest-run/files/wandb-summary.json') as json_file:
|
32 |
+
model_type=params["model_type"], model_name=params["model_name"]
|
33 |
data = json.load(json_file)
|
34 |
|
35 |
with open('reports/training_metrics.txt', 'w') as fp:
|