AttributeError: MinMaxScaler Error
See original GitHub issueGetting the following error message.
'MinMaxScaler' object has no attribute 'clip'
Can you please review it?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
AttributeError: 'MinMaxScaler' object has no attribute 'clip'
The issue is you are training the scaler on a machine with an older verion of sklearn than the machine you're using to...
Read more >MinMaxScaler from sklearn throwing error after deployment
Once my main function runs it throws an error for the scaling function: AttributeError: 'MinMaxScaler' object has no attribute 'clip' ...
Read more >AttributeError: 'MinMaxScaler' object has no attribute 'scale_'
I have been trying to train my model at Tesla P100 using tensorflow-gpu 2.2.0, having CUDA version 10.1 and cudnn version 7.6, in...
Read more >sklearn.preprocessing.MinMaxScaler
Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in...
Read more >AttributeError: 'MinMaxScaler' object has no attribute 'clip ...
The issue is you are training the scaler on a machine with an older verion of sklearn than the machine you're using to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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