mirror of
https://github.com/RYDE-WORK/lnp_ml.git
synced 2026-03-21 09:36:32 +08:00
增加超参搜索范围
This commit is contained in:
parent
9e4800b77e
commit
48de4d5d37
@ -282,8 +282,8 @@ def run_optuna_cv(
|
||||
|
||||
# 搜索训练超参数
|
||||
dropout = trial.suggest_float("dropout", 0.1, 0.5)
|
||||
lr = trial.suggest_float("lr", 1e-5, 3e-4, log=True)
|
||||
weight_decay = trial.suggest_float("weight_decay", 1e-5, 1e-3, log=True)
|
||||
lr = trial.suggest_float("lr", 1e-5, 1e-3, log=True)
|
||||
weight_decay = trial.suggest_float("weight_decay", 1e-5, 1e-1, log=True)
|
||||
backbone_lr_ratio = trial.suggest_float("backbone_lr_ratio", 0.01, 1.0, log=True)
|
||||
|
||||
# 3-fold CV
|
||||
|
||||
@ -395,8 +395,8 @@ def run_inner_optuna(
|
||||
|
||||
# 搜索训练超参数
|
||||
dropout = trial.suggest_float("dropout", 0.1, 0.5)
|
||||
lr = trial.suggest_float("lr", 1e-5, 3e-4, log=True)
|
||||
weight_decay = trial.suggest_float("weight_decay", 1e-5, 1e-3, log=True)
|
||||
lr = trial.suggest_float("lr", 1e-5, 1e-3, log=True)
|
||||
weight_decay = trial.suggest_float("weight_decay", 1e-5, 1e-1, log=True)
|
||||
backbone_lr_ratio = trial.suggest_float("backbone_lr_ratio", 0.01, 1.0, log=True)
|
||||
|
||||
# 内层 3-fold CV
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user