Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X has feature names, but StandardScaler was fitted without feature names #720

Open
dsimop opened this issue Apr 16, 2024 · 0 comments
Open

Comments

@dsimop
Copy link

dsimop commented Apr 16, 2024

As mentioned in the title, after trying to make new predictions, I get the "X has feature names, but StandardScaler was fitted without feature names" warning. Therefore, no predictions can be returned. It seems the same problem was mentioned here. The model training was executed successfully, but the model could not be used for new predictions. I executed the following simple script for the predictions:

df = pd.read_csv('myDataset.csv')
automl = AutoML(results_path='AutoML_1')
automl.predict_all(df.iloc[:, :-1])

P.S.: In the logs, I also got:
_catboost.CatBoostError: /Users/zomb-ml-platform-msk/go-agent-21.2.0/pipelines/BuildMaster/catboost.git/catboost/libs/data/model_dataset_compatibility.cpp:81: At position 35 should be feature with name Ensemble_prediction_0_for_Label0_1_for_Label1 (found Ensemble_prediction).

[MLJar-Supervised 1.1.7, scikit-learn 1.4.2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant