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
unable to load models #377
Comments
same error happen with below command automl = AutoML(results_path="/media/autosk4/") |
Hi @nasergh! Thank you for reporting the issue. Could you please send the console output from the training? It looks like there was some problem with the Could you send the code that you used for training and Ideally a dataset sample (so I can reproduce the problem)? |
maybe it's because i use 3 fold |
@nasergh thank you, it can work with 3 folds, no problem. I just don't see the code that you used so I'm trying to guess what's wrong ... Could you please paste the code that you used for AutoML training? Do you observe the problem with smaller sample size, for example with 100 training samples? |
i don't have nan in inputs !
|
automl = AutoML(mode="Compete",model_time_limit=(15)60,n_jobs=-1,results_path="/media/autosk4/",explain_level=0, validation_strategy={"validation_type": "kfold","k_folds": 3,"shuffle": False, "stratify": False}, automl.fit(X_train, y_train) |
please give me one little dataset to test with it. |
@nasergh that might be some problem with Golden Features generation code ... You can select only few samples from your own dataset or you can generate the data: from sklearn import datasets
X, y = datasets.make_classification(
n_samples=100,
n_features=5,
n_informative=4,
n_redundant=1,
n_classes=2,
n_clusters_per_class=3,
n_repeated=0,
shuffle=False,
random_state=0,
) |
i test with this dataset and it's work ! |
Can you send me your data statistics? If your data is in pandas data frame, you can use
|
describe |
@nasergh thank you! By setting large numbers I was able to reproduce the warnings: invalid value encountered in reduce
Input contains NaN, infinity or a value too large for dtype('float32'). However, even with warnings I can fit the model and then load to compute predictions without any errors ... Could you provide the full code that you used to compute predictions (load AutoML)? |
i try to load via below one and also but when i call .predict it's gives error |
I need a dataset to recreate the problem and fix a bug. In the meanwhile you can train models with |
i save the model with pickle, for now i fix my issue. there is a way to get each model of ensemble ? (i try different things but it seems they did not work any more like to_json, get_models,...) |
same error without golden_feature
|
Hi @nasergh!
You can try to install the package with the newest changes from GitHub - I've added new plots to model reports. |
I'm closing the issue. Cant reprodcue it. Feel free to reopen or create new one if similar wrong behavior observed. |
Hello,
i train some models and give the folder to save the models.
but when i try to load the model by below command it's give me error
and these are files in 1_default_light_... folder
The text was updated successfully, but these errors were encountered: