glmdisc.Glmdisc.discretize_dummy¶
-
Glmdisc.
discretize_dummy
(predictors_cont, predictors_qual)¶ Discretizes new continuous and categorical features using a previously fitted glmdisc object as Dummy Variables usable with the best_reglog object.
- Parameters
predictors_cont (numpy.array) – Continuous predictors to be discretized in a numpy “numeric” array. Can be provided either here or with the __init__ method.
predictors_qual (numpy.array) – Categorical features which levels are to be merged (also in a numpy “string” array). Can be provided either here or with the __init__ method.
- Returns
array of discretized features as dummy variables
- Return type
numpy.array