resolve_optuna_suggest
Returns:
resolve_optuna_metric_output
Returns:
Raises:
Examples:
BaseTracker
Ancestors
abc.ABC
Descendants
systematica.tuners.neptune_ai.tracker.NeptuneOptunaTrackersystematica.tuners.sqlite.tracker.SQLiteOptunaTracker
Instance variables
-
tags: Set: Metadata tags. -
add_configs: Dict[str, Any]: Additional config logs to store. -
init_kwargs: Dict[str, Any]: Additional arguments. -
log_kwargs: Dict[str, Any]: Additional logging arguments.
Methods
run_context
Yields:
run_study
Returns:
BaseCustomNeptuneCallback
Ancestors
abc.ABCsystematica.utils.neptune_ai.NeptuneCallback
Descendants
systematica.tuners.neptune_ai.callbacks.CustomCallback
BaseTrialSelector
run method.
Method generated by attrs for class BaseTrialSelector.
Ancestors
abc.ABC
Descendants
systematica.tuners.trial_selectors.AUCMaximizationsystematica.tuners.trial_selectors.BestMetricPointsystematica.tuners.trial_selectors.ClosestIdealPointsystematica.tuners.trial_selectors.DiversitySamplingsystematica.tuners.trial_selectors.EfficientFrontierProjectionsystematica.tuners.trial_selectors.ElbowPointsystematica.tuners.trial_selectors.EpsilonConstraintsystematica.tuners.trial_selectors.HullExtremePointsystematica.tuners.trial_selectors.HullMidPointsystematica.tuners.trial_selectors.HullPointsystematica.tuners.trial_selectors.HypervolumeContributionsystematica.tuners.trial_selectors.MaxMetricPointsystematica.tuners.trial_selectors.MinMetricPointsystematica.tuners.trial_selectors.Preferencesystematica.tuners.trial_selectors.Randomsystematica.tuners.trial_selectors.RegretMinimizationsystematica.tuners.trial_selectors.RiskAwareUtility
Instance variables
name: Name of the selector, used for identification.
Methods
run
Returns:
BaseAnalyzer
BaseAnalyzer:
run_contextfetch_trialsfetch_feature_config
Ancestors
abc.ABC
Descendants
systematica.tuners.base.BaseOptunaAnalyzersystematica.tuners.base.BaseOptunaAnalyzer
Static methods
combine_trials
pd.DataFrame object.
Parameters:
Returns:
Instance variables
-
api_token: str: API token if needed, e.g. “your_api_token”. -
project: str: Project name.
Methods
run_context
Yields:
fetch_trials
Returns:
fetch_feature_config
Raises:
Returns:
get_trial_params
Returns:
clear_cache
get_best_metrics
fetch_trials.
Parameters:
Returns:
get_best_params
fetch_trials.
Parameters:
Returns:
get_best_trials
fetch_trials.
Parameters:
Returns:
get_all_trials
fetch_trials.
Parameters:
Returns:
get_metrics
Returns:
get_params
Returns:
get_all_params
Returns:
get_all_combination
Returns:
get_param_combination
Returns:
BaseOptunaObjective
Ancestors
abc.ABC
Descendants
systematica.tuners.optuna_.objectives.ObjectiveFullHistorysystematica.tuners.optuna_.objectives.ObjectiveRollingWalkForward
Static methods
optuna_optimize_kwargs
Instance variables
-
debug: bool: Flag to enable debug mode for detailed error messages. -
validate_model: bool: Flag to validate model signals before running the backtest.
Methods
compute
Returns:
get_objective
Returns:
run_study
Returns:
BaseOptunaAnalyzer
BaseAnalyzer:
run_contextfetch_trialsfetch_feature_config
BaseOptunaAnalyzer:
fetch_optuna_study
Ancestors
systematica.tuners.base.BaseAnalyzerabc.ABC
Descendants
systematica.tuners.neptune_ai.analyzer.NeptuneOptunaAnalyzersystematica.tuners.neptune_ai.analyzer.NeptuneOptunaAnalyzersystematica.tuners.sqlite.analyzer.SQLiteOptunaAnalyzersystematica.tuners.sqlite.analyzer.SQLiteOptunaAnalyzer
Methods
fetch_optuna_study
Returns:
get_optuna_trials
pd.DataFrame is returned.
Parameters:
Returns:
get_optuna_best_trials
Returns:
stats
Returns:
run_composer
run_id.
New generation logging is supported.
Parameters:
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:

