Hyperparameter Optimization

This page describes the concept of Hyperparameter Optimization

HPOs

Hyperparameter Optimization (HPO) optimizes model hyperparameters to ensure models are performing at their best. HPOs run a set of trials where each trial is a full Backtest and optimize hyperparameters for a given model based on the results of the collection of trials run. You can analyze results of HPO runs in our Web Application and client library to confirm your models have the best set of hyperparameters.

With the exception of the Number of Trials, Max Concurrent Trials, and Search Space, HPO shares all parameters with Backtesting. An HPO in the Myst platform therefore has the following parameters:

ParameterDescription
TitleThe title of the HPO
ModelThe Model for which a user wants to create an HPO
MetricThe metric for determining the optimal hyperparameters. Today, MSE is the only available metric.
Number of TrialsThe number of trials in the HPO
Max Concurrent TrialsThe maximum number of trials running at any one time
Test Start TimeThe start time of each trial test period
Test End TimeThe end time of each trial test period
Fit Start TimingThe start of each Model fit period (Absolute Timing or Relative Timing)
Fit End TimingThe end of each Model fit period (Absolute Timing or Relative Timing)
Fit Reference TimingSchedule or frequency at which Model fits occur (Cron Timing)
Predict Start TimingThe start of each Model predict period (Absolute Timing or Relative Timing)
Predict End TimingThe start of each Model predict period (Absolute Timing or Relative Timing)
Predict Reference TimingSchedule or frequency at which Model predictions occur (Cron Timing)
Search SpaceThe parameters to optimize along with their search space

Example

The tables below include the parameters for an HPO with 10 different trials, where each trial runs sequentially. Each trial in the HPO is a full backtest and the parameters are the same as our example in our Backtesting page. See that page for a detailed description of the backtest and its parameters.

Parameters

ParameterValue
Number of Trials10
Max Concurrent Trials1
Test Start Time2021-03-01T00:00:00Z
Test End Time2021-03-14T00:00:00Z
Fit Start Timing-P1M
Fit End TimingPT0H
Fit Reference Timing0 0 * * 1
Predict Start TimingPT0H
Predict End TimingPT24H
Predict Reference Timing0 0 * * *

Search Space

The parameters below are an example of a search space for an XGBoost model.

ParameterSamplerParameters
Boosting RoundsLogUniformLower: 100
Upper: 1000
Base: 10
Max DepthQUniformLower: 1
Upper: 12
q: 1
Learning RateLogUniformLower: 0.005
Upper: 0.2
Base: 10
Min Child WeightQUniformLower: 0
Upper: 100
q: 5