Skip to content

Commit

Permalink
Fix Tune
Browse files Browse the repository at this point in the history
  • Loading branch information
6sy666 committed Jan 6, 2025
1 parent 466f0b0 commit 6c3f0af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions LAMDA_TALENT/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,7 @@ def objective(trial):
# method.fit(train_val_data, info, train=True, config=config)
# run with this config
try:
set_seeds(args.seed)
method = get_method(args.model_type)(args, info['task_type'] == 'regression')
method.fit(train_val_data, info, train=True, config=config,save_model=False)
method.fit(train_val_data, info, train=True, config=config)
return method.trlog['best_res']
except Exception as e:
print(e)
Expand Down

0 comments on commit 6c3f0af

Please sign in to comment.