add_standard_scaler_constr#

gurobi_ml.sklearn.preprocessing.add_standard_scaler_constr(gp_model, standard_scaler, input_vars, **kwargs)#

Formulate standard_scaler into gp_model.

Note that this function creates the output variables from the input variables.

Parameters:
  • gp_model (gurobipy model) – The gurobipy model where the standard scaler should be inserted.

  • standard_scaler (sklearn.preprocessing.StandardScaler) – The standard scaler to insert as predictor.

  • input_vars (mvar_array_like) – Decision variables used as input for standard scaler in model.

Returns:

Object containing information about what was added to gp_model to insert the standard_scaler in it

Return type:

sklearn.preprocessing.StandardScalerConstr