NeptuneAnalyzer
Static methods
combine_trials
pd.DataFrame object.
Parameters:
Returns:
Instance variables
-
api_token: str: Neptune API token, e.g. “your_api_token”. -
project: str: Neptune project name, e.g. “user_name/project_name”.
Methods
run_context
Yields:
clear_cache
_fetch_neptune_metadata.
best_metrics
Returns:
best_params
Returns:
trial_params
metadata_tag=trials/trials/0/distributions(Primary)metadata_tag=trials/trials(Fallback)
Returns:
get_best_trials
Returns:
get_all_trials
Returns:
metrics
Returns:
params
Returns:
all_params
Returns:
run_composer
run_id.
New generation logging is supported.
Parameters:
Returns:
all_combination
Returns:
param_combination
Returns:
optuna_study
- 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.
sys/id field.
Parameters:
Returns:
optuna_trials_dataframe
pd.DataFrame is returned.
Parameters:
Returns:
optuna_best_trials
Returns:
stats
Returns:
plot_pareto_front
Returns:
plot_contour
Returns:
plot_param_importances
An importance evaluator object that specifies which algorithm to base
the importance assessment on, defaults to
FanovaImportanceEvaluator.
Returns:
plot_edf
Returns:
plot_optimization_history
Returns:
plot_parallel_coordinate
Returns:
plot_rank
Trials missing the specified parameters will not be plotted.
Returns:
plot_slice
The slice plot is useful for visualizing the relationship between
hyperparameters and the objective function values.It can help you:
- Identify Parameter Sensitivity: Shows which hyperparameters have a strong influence on performance.
- Detect Bad Regions: Highlights ranges where performance is consistently poor.
- Spot Non-linear Patterns: You might notice trends.
- Debug Optimization: If you see no pattern or strange clumping, it
might indicate:
- A bad search space.
- Problems with the objective function.
- Guide Future Searches: Helps you refine the search space for better performance in future runs.
Returns:
plot_hypervolume_history
Returns:
plot_timeline
Returns:
plot_intermediate_values
Returns:
plot_terminator_improvement
This function visualizes the objective improvement potentials, evaluated
with
improvement_evaluator. It helps to determine whether we should
continue the optimization or not. You can also plot the error evaluated
with error_evaluator if the plot_error argument is set to True. Note
that this function may take some time to compute the improvement
potentials. The improvement_evaluator defaults to RegretBoundEvaluator
and the error_evaluator to CrossValidationErrorEvaluator.
Returns:
plot_params_correlation
Returns:
plot_metrics_correlation
Returns:
plot_metrics
Returns:
plot_params
Returns:
plot_density_heatmap
Returns:
plot_density_contour
Returns:
plot_frontier
This function plots the efficient frontier of a study, which is a
graphical representation of the trade-off between risk and return. The
efficient frontier is a curve that shows the optimal risk-return
combinations for a given set of trials. The points on the curve represent
the best possible trade-offs between risk and return, while points below
the curve are suboptimal:
- x is generally a risk metric (e.g., volatility), while y is a performance measure (e.g., returns).
- The risk-adjusted optimized point is calculated as: risk_adj = (returns - risk_free_rate) / risks
Returns:

