question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: MinMaxScaler Error

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Christopher-Thorntoncommented, Mar 8, 2021

@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.

2reactions
yashmahendra13commented, Mar 7, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found