You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This argument is supposed to confine the model family search scope. However, all model families will be searched no matter what input for this argument.
Version: 0.83.0
Code Sample, a copy-pastable example to reproduce your bug.
automl_with_ensembling.allowed_model_families returns a blank list instead of the list of linear models. automl_with_ensembling.search() returns 5 models, which is not limited to linear models:
{1: {'Random Forest Classifier w/ Label Encoder + Imputer + RF Classifier Select From Model': 2.085165023803711,
'Total time of batch': 2.204948902130127},
2: {'Elastic Net Classifier w/ Label Encoder + Imputer + Standard Scaler + Select Columns Transformer': 1.0889050960540771,
'Logistic Regression Classifier w/ Label Encoder + Imputer + Standard Scaler + Select Columns Transformer': 3.366680145263672,
'Total time of batch': 4.698328256607056},
3: {'Stacked Ensemble Classification Pipeline': 2.254487991333008,
'Total time of batch': 2.36545991897583},
4: {'Logistic Regression Classifier w/ Label Encoder + Imputer + Standard Scaler + Select Columns Transformer': 1.7583808898925781,
'Random Forest Classifier w/ Label Encoder + Imputer + Select Columns Transformer': 4.039682149887085,
'Total time of batch': 248.39868783950806},
5: {'Stacked Ensemble Classification Pipeline': 2.4489309787750244,
'Total time of batch': 2.5626749992370605}}
The text was updated successfully, but these errors were encountered:
Hi @enfeizhan, this is the correct behavior. From the documentation:
allowed_model_families (list(str, ModelFamily)): The model families to search. ... For default algorithm, this only applies to estimators in the non-naive batches.
The example you provided uses the default algorithm, meaning that the naive batch containing the Random Forest Classifier is still run, which is that first batch you have in your output. The second batch is the first non-naive batch run, which does only include the linear model family estimators. You can see that the allowed models are maintained in automl_with_ensembling.automl_algorithm.allowed_model_families.
Note that both Elastic Net and Logistic Regression are linear models.
This argument is supposed to confine the model family search scope. However, all model families will be searched no matter what input for this argument.
Version: 0.83.0
Code Sample, a copy-pastable example to reproduce your bug.
automl_with_ensembling.allowed_model_families
returns a blank list instead of the list of linear models.automl_with_ensembling.search()
returns 5 models, which is not limited to linear models:{1: {'Random Forest Classifier w/ Label Encoder + Imputer + RF Classifier Select From Model': 2.085165023803711,
'Total time of batch': 2.204948902130127},
2: {'Elastic Net Classifier w/ Label Encoder + Imputer + Standard Scaler + Select Columns Transformer': 1.0889050960540771,
'Logistic Regression Classifier w/ Label Encoder + Imputer + Standard Scaler + Select Columns Transformer': 3.366680145263672,
'Total time of batch': 4.698328256607056},
3: {'Stacked Ensemble Classification Pipeline': 2.254487991333008,
'Total time of batch': 2.36545991897583},
4: {'Logistic Regression Classifier w/ Label Encoder + Imputer + Standard Scaler + Select Columns Transformer': 1.7583808898925781,
'Random Forest Classifier w/ Label Encoder + Imputer + Select Columns Transformer': 4.039682149887085,
'Total time of batch': 248.39868783950806},
5: {'Stacked Ensemble Classification Pipeline': 2.4489309787750244,
'Total time of batch': 2.5626749992370605}}
The text was updated successfully, but these errors were encountered: