seldonian.utils.stats_utils.default_supervised_initial_solution_fn

default_supervised_initial_solution_fn(model, X, y)

A wrapper around model.fit() to use as the initial_solution_fn parameter to the spec.

Parameters:
  • model – SeldonianModel instance

  • X – Features array (2D numpy array)

  • y – Labels array (1D numpy array)

Returns:

The cumulative product of the array

Return type:

numpy ndarray(float)