Variables
INTEGRATION_VERSION_KEY: Key under which the version of the Neptune-Optuna integration is logged in Neptune. Set to the value ofsource_code/integrations/neptune-optuna.
log_study_metadata
- Values and params for each trial.
- Current best values and params for the study.
- Visualizations from the optuna.visualizations module.
- Parameter distributions for each trial.
- The study object itself, to load it later.
| Name | Type | Default | Description |
|---|---|---|---|
study | optuna.Study | -- | Optuna study object. |
run | neptune.Run | -- | Neptune run. |
base_namespace | str | "" | Namespace inside the run where your study metadata is logged. |
log_plots | bool | True | If True, the visualizations from optuna.visualizations will be logged to Neptune. |
log_study | bool | True | If True, the study will be logged to Neptune. The objects that are logged depend |
log_all_trials | bool | True | If True, all trials are logged. |
log_distributions | bool | True | If True, the distributions for all trials are logged. |
visualization_backend | str | "plotly" | Which visualization backend is used for ‘optuna.visualizations’ plots. |
log_plot_contour | bool | True | If True the optuna.visualizations.plot_contour visualization will be logged to Neptune. |
log_plot_edf | bool | True | If True the optuna.visualizations.plot_edf visualization will be logged to Neptune. |
log_plot_parallel_coordinate | bool | True | If True the optuna.visualizations.plot_parallel_coordinate visualization will be logged to Neptune. |
log_plot_param_importances | bool | True | If True the optuna.visualizations.plot_param_importances visualization will be logged to Neptune. |
log_plot_pareto_front | bool | True | If True the optuna.visualizations.plot_pareto_front visualization will be logged to Neptune. |
log_plot_slice | bool | True | If True, the optuna.visualizations.plot_slice visualization will be logged to Neptune. |
log_plot_intermediate_values | bool | True | If True, the optuna.visualizations.plot_intermediate_values visualization will be logged to Neptune. |
log_plot_optimization_history | bool | True | If True, the optuna.visualizations.plot_optimization_history visualization will be logged to Neptune. |
target_names | list | -- | of str, default None List of one or more study objective names to log (see example). |
load_study_from_run
- If the study used ‘InMemoryStorage’, it will be loaded from the logged pickled study object.
- If the study used database storage, it will be loaded from the logged database URL.
| Name | Type | Default | Description |
|---|---|---|---|
run | neptune.Run | -- | Neptune run. |
NeptuneCallback
- Values and parameters for each trial.
- Current best values and parameters for the study.
- Visualizations from the optuna.visualizations module.
- Parameter distributions for each trial.
- The study object itself, to load it later.
| Name | Type | Default | Description |
|---|---|---|---|
run | neptune.Run | -- | Neptune run object. You can also pass a namespace handler object; for example, run["test"], in which case all metadata is logged under the “test” namespace. |
base_namespace | str | "" | Namespace inside the run where your study metadata is logged. |
plots_update_freq | int | 1 | Frequency at which plots are logged and updated in Neptune. If you pass an integer k, plots will be updated every k iterations. If you pass the string ‘never’, plots will not be logged. |
study_update_freq | int | 1 | Frequency at which a study object is logged and updated in Neptune. If you pass an integer k, the study will be updated every k iterations. If you pass the string ‘never’, the study will not be logged. |
visualization_backend | str | plotly | Which visualization backend is used for optuna.visualizations plots. Can be either ‘matplotlib’ or ‘plotly’. |
log_plot_contour | bool | True | If True, the optuna.visualizations.plot_contour visualization will be logged to Neptune. |
log_plot_edf | bool | True | If True, the optuna.visualizations.plot_edf visualization will be logged to Neptune. |
log_plot_parallel_coordinate | bool | True | If True, the optuna.visualizations.plot_parallel_coordinate visualization will be logged to Neptune. |
log_plot_param_importances | bool | True | If True, the optuna.visualizations.plot_param_importances visualization will be logged to Neptune. |
log_plot_pareto_front | bool | True | If True, the optuna.visualizations.plot_pareto_front visualization will be logged to Neptune. If your optuna.study is not multi-objective, this plot is not logged. |
log_plot_slice | bool | True | If True, the optuna.visualizations.plot_slice visualization will be logged to Neptune. |
log_plot_intermediate_values | bool | True | If True, the plot_intermediate_values visualization will be logged to Neptune. If your optuna.study is not using pruners, this plot is not logged. |
log_plot_optimization_history | bool | True | If True, the plot_optimization_history visualization will be logged to Neptune. |
target_names | tp.List[str] | None | List of one or more study objective names to log (see example). |
log_all_trials | bool | True | If `True, all trials are logged. Defaults to True. |
Descendants
systematica.portfolio.trackers.base.BaseCustomNeptuneCallback

