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.

MinMaxScaler should have a `strict` mode

See original GitHub issue

Describe the workflow you want to enable

On held-out data not used to fit the transform, MinMaxScaler can return values outside the feature_range. This is a problem when all data must be within a particular range.

Describe your proposed solution

MinMaxScaler should have a parameter strict, which will clip all transformed values to the feature_range

Describe alternatives you’ve considered, if relevant

Running np.clip myself

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremiedbbcommented, Nov 27, 2020

right, thanks

1reaction
NicolasHugcommented, Jul 1, 2020

I think you got it right @yashika51

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use StandardScaler and MinMaxScaler Transforms in ...
In this tutorial, you will discover how to use scaler transforms to standardize and normalize numerical input variables for classification ...
Read more >
Scale, Standardize, or Normalize with Scikit-Learn | by Jeff Hale
Use MinMaxScaler if you want to have a light touch. It's non-distorting. You could use RobustScaler if you have outliers and want to...
Read more >
How to deal with MinMaxScaler when there is only a single ...
We will build a training set that excludes the minimum values, to see what happens. Let's check on a test set with the...
Read more >
Supported scikit-learn Models - ONNX
Name Package Supported ARDRegression linear_model Yes AdaBoostClassifier ensemble Yes AdaBoostRegressor ensemble Yes
Read more >
Why Scaling is Important in Machine Learning? - Medium
Use MinMaxScaler() if you are transforming a feature, its non distorting; Use RobustScaler() if you have outliers, this scaler will reduce the effect...
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