Created
November 2, 2021 20:36
-
-
Save cj2001/7666bc80bdfdece464cc23ff416b37ec to your computer and use it in GitHub Desktop.
CORA Optuna objective
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def optuna_objective(trial): | |
params = { | |
'embeddingDimension': trial.suggest_int('embeddingDimension', 32, 512, log=True), | |
'thirdWeight': trial.suggest_float('thirdWeight', 0.0, 1.0), | |
'fourthWeight': trial.suggest_float('fourthWeight', 0.0, 1.0), | |
'normalizationStrength': trial.suggest_float('normalizationStrength', -1.0, 1.0) | |
} | |
return objective(params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment