Skip to content

Instantly share code, notes, and snippets.

@yashprakash13
Last active January 5, 2022 17:12
Show Gist options
  • Save yashprakash13/140bc0f4906eaee49623e047205216f7 to your computer and use it in GitHub Desktop.
Save yashprakash13/140bc0f4906eaee49623e047205216f7 to your computer and use it in GitHub Desktop.
study = optuna.create_study(direction="minimize")
study.optimize(objective, n_trials=500)
print(f"Optimized RMSE: {study.best_value:.4f}")
print("Best params:")
for key, value in study.best_params.items():
print(f"\t{key}: {value}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment