glmdisc.Glmdisc.fit

Glmdisc.fit(predictors_cont, predictors_qual, labels, iter=100, **kwargs)

Fits the Glmdisc object.

Todo

On regarde si des modalités sont présentes dans validation et pas dans train

Parameters
  • predictors_cont (numpy.ndarray) – Continuous predictors to be discretized in a numpy “numeric” array. Can be provided either here or with the __init__ method.

  • predictors_qual (numpy.ndarray) – Categorical features which levels are to be merged (also in a numpy “string” array). Can be provided either here or with the __init__ method.

  • labels (numpy.ndarray) – Boolean (0/1) labels of the observations. Must be of the same length as predictors_qual and predictors_cont (numpy “numeric” array).