objective_base

Objective function for all training based hyperparameter optimizations.

class ObjectiveBase(params, data_handler)[source]

Bases: object

Represents the objective function of a training process.

This is usually the result of a training of a network.

parse_trial(trial)[source]

Parse a trial into a network architecture.

Parameters:

trial – A trial is a set of hyperparameters; can be an optuna based trial or simply a OAT compatible list.

parse_trial_oat(trial)[source]

Parse an OA based trial into the params attribute.

Parameters:

trial (numpy.array) – Row in an orthogonal array which respresents current trial.

parse_trial_optuna(trial: optuna.Trial)[source]

Parse an optuna style trial into the params attribute.

Parameters:

trial (optuna.trial.Trial.) – A set of hyperparameters encoded by optuna.