Skip to content

Commit

Permalink
Fix backward compatibility of NNOptimiserParams
Browse files Browse the repository at this point in the history
  • Loading branch information
opcode81 committed Jul 29, 2023
1 parent f08dccd commit c9f73af
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sensai/torch/torch_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,15 @@ def get_validation_metric_name(self):
class NNOptimiserParams(ToStringMixin):
REMOVED_PARAMS = {"cuda"}
RENAMED_PARAMS = {
"optimiserClip": "shrinkageClip"
"optimiserClip": "optimiser_clip",
"lossEvaluator": "loss_evaluator",
"optimiserLR": "optimiser_lr",
"earlyStoppingEpochs": "early_stopping_epochs",
"batchSize": "batch_size",
"trainFraction": "train_fraction",
"scaledOutputs": "scaled_outputs",
"useShrinkage": "use_shrinkage",
"shrinkageClip": "shrinkage_clip",
}

def __init__(self,
Expand Down

0 comments on commit c9f73af

Please sign in to comment.