Spaces:
Runtime error
Runtime error
split added
Browse files
src/models/train_model.py
CHANGED
@@ -23,8 +23,8 @@ def train_model():
|
|
23 |
|
24 |
model.train(train_df=train_df, eval_df=eval_df,
|
25 |
batch_size=params['batch_size'], max_epochs=params['epochs'],
|
26 |
-
use_gpu=params['use_gpu'], learning_rate=params['learning_rate'],
|
27 |
-
num_workers=params['num_workers'])
|
28 |
|
29 |
model.save_model(model_dir=params['model_dir'])
|
30 |
|
|
|
23 |
|
24 |
model.train(train_df=train_df, eval_df=eval_df,
|
25 |
batch_size=params['batch_size'], max_epochs=params['epochs'],
|
26 |
+
use_gpu=params['use_gpu'], learning_rate=float(params['learning_rate']),
|
27 |
+
num_workers=int(params['num_workers']))
|
28 |
|
29 |
model.save_model(model_dir=params['model_dir'])
|
30 |
|