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

AttributeError: MinMaxScaler Error #6

Open
yashmahendra13 opened this issue Mar 5, 2021 · 7 comments
Open

AttributeError: MinMaxScaler Error #6

yashmahendra13 opened this issue Mar 5, 2021 · 7 comments

Comments

@yashmahendra13
Copy link

Getting the following error message.

'MinMaxScaler' object has no attribute 'clip'

Can you please review it?
Screen Shot 2021-03-05 at 3 19 52 PM

@yashmahendra13 yashmahendra13 changed the title MinMaxScaler Error AttributeError: MinMaxScaler Error Mar 5, 2021
@Christopher-Thornton
Copy link
Owner

This is likely a version compatibility issue with sklearn, can you let me know what version you have installed? I don’t have the bandwidth to fix this right now, try installing an earlier version of sklearn for now.

@yashmahendra13
Copy link
Author

Thanks, @Christopher-Thornton just wanted to bring this to your attention. This is a great package, if I have some capacity, I can help address the above issue.

I have installed an earlier version of scikit-learn. The fix is here if anyone faced this issue ->https://stackoverflow.com/questions/65635575/attributeerror-minmaxscaler-object-has-no-attribute-clip

@gloriamacia
Copy link

@Christopher-Thornton consider maybe hosting the training dataset. This way we could help you retrain the model with the newest sklearn version and upload the artifact. I would also like to develop a pytorch version of it and would be super-useful.

To solve the issue for now, in the meantime you can change the install requirements in requirements.txt. 0.23.1 is the required version with the current model training.

@Christopher-Thornton
Copy link
Owner

@gloriamacia I've pinned the sklearn version to 0.23.1 in the requirements.txt.

Hopefully I will have the time in the next few weeks to train a new model using the latest version of sklearn.
The training dataset and code is included in the dev folder for other developers to build their own unique models and compare benchmarks.

The ultimate goal for this package is to be lightweight and high performance. Pytorch lightning might be a better framework in this regard, or I could make the inference part of the package entirely independent of a DL framework.

I think a change to pytorch would improve the usability of the package, if you are able to translate the model definitions that would really help me out.

@gloriamacia
Copy link

Happy to help out @Christopher-Thornton. Let me have a look this weekend at the training dataset to maybe start improving this first for ES/FR languages

@OleksiyAnokhin
Copy link

Faced the same issue still.

Repository owner deleted a comment from raihan0824 Jun 30, 2022
@caiyishu
Copy link

caiyishu commented Mar 27, 2023

I solved this issue by:

pip uninstall scikit-learn
pip install scikit-learn==0.23.1

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

5 participants