MinMaxScaler should have a `strict` mode
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top 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 >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
right, thanks
I think you got it right @yashika51