I have 31 features to be input into an ML algorithm. Of these 22 feature values are in the range of 0 to 1 already. The remaining 9 features vary between 0 to 750. My doubt is if I choose to apply MinMaxScaler() with range set to (0,1), should all the features be scaled or only the 9 features outside the desired range be subjected to scaling? What is more appropriate?
Feature Scaling with MinMaxScaler()
21 Views Asked by rekha At
1
There are 1 best solutions below
Related Questions in MACHINE-LEARNING
- Trained ML model with the camera module is not giving predictions
- Keras similarity calculation. Enumerating distance between two tensors, which indicates as lists
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- How to predict input parameters from target parameter in a machine learning model?
- The training accuracy and the validation accuracy curves are almost parallel to each other. Is the model overfitting?
- ImportError: cannot import name 'HuggingFaceInferenceAPI' from 'llama_index.llms' (unknown location)
- Which library can replace causal_conv1d in machine learning programming?
- Fine-Tuning Large Language Model on PDFs containing Text and Images
- Sketch Guided Text to Image Generation
- My ICNN doesn't seem to work for any n_hidden
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme
- How can I resolve this error and work smoothly in deep learning?
- ModuleNotFoundError: No module named 'llama_index.node_parser'
- Difference between model.evaluate and metrics.accuracy_score
- Give Bert an input and ask him to predict. In this input, can Bert apply the first word prediction result to all subsequent predictions?
Related Questions in NORMALIZATION
- Threshold scaling along a straight line
- How to Normalize a function in python?
- Feature Scaling with MinMaxScaler()
- Min-max scaling on DCT coefficients
- Swift Image preprocessing: normalization with mean [0.485, 0.456, 0.405] std [0.229, 0.224, 0.225]
- Divide two signal stream using GNU Radio but no result appear
- Why does the Min-Max normalization produces inaccurate results when used in dtype='<i2' in python
- Should I turn my skewed data into a normal distributed data before using MinMaxScaler or StandardScaler?
- How to get the message being passed in torch geometric?
- Data Normalisation in transformation then Batch Normalisation in ResNet50 pytorch
- Finding standard deviation and mean for Normalize function from torchvision
- Can't normalize my custom index to start at 0% y-intercept
- the prediction results are so far from the original data that the new information cannot be used, is there something wrong?
- Normalizing the numerical values
- Min-Max Normalization by group across multiple columns
Related Questions in DATA-PREPROCESSING
- Using tft.scale_to_gaussian for preprocessing a dataset without using other tensorflow operations
- How much time can data preprocessing and annotation for fine tuning an LLM take for training it on around 1k docs
- Feature Scaling with MinMaxScaler()
- Integrating Target Variable with Features Before Splitting Sequences Causes Shape Mismatch in ML Model Input
- How to separate items in dataset in python?
- Using sklearn where the label a combination of multiple inputs
- Array is not loaded on the pdal data pipeline
- Issues with Data Preprocessing and Changing Type of DataFrame Columns
- Transforming Y-label to perform Multi-Label Classification
- Sklearn inverse_transformation does not work as expected, any alternatives?
- How to Extract specific data from Text File Using Python
- A dataset with undefined dimensionality (None, 2) and a recurrent neural network
- Dealing with missing data using standard ML techniques
- Is there a faster method to process pandas list of string values
- How do LlamaIndex and LangChain Differ in Terms of Data Preprocessing for LLM Applications?
Related Questions in FEATURE-SCALING
- Feature Scaling with MinMaxScaler()
- R quanteda textplot_network for each document and influence number of features
- Is there any data scaling methods except for Min-Max Normalization and Quantile transformation that keeps the range between [0,1]?
- Getting a negative prediction after min-max scaling the price in a linear regression
- Understanding the Implications of Scaling Test Data Using the Same Scalar Object as Training Data
- Do i need to use RobustScaler() and OneHotEncoder() in new data before model.predict()
- How can I see progress of all Features with a Progress bar
- Does it makes sense to scale features by only one label before using logistic regression?
- Machine Learning: Combining Binary Encoder and RobustScaler
- Strange results when scaling data using scikit learn
- Should we always first perform feature normalization and then the feature reduction?
- Feature rescaling for k-means clustering
- Some columns became NaN after scaling
- Why Does Tree and Ensemble based Algorithm don't need feature scaling?
- Do features need to be scaled in Logistic Regression?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It is better to scale all variables.
If you don't scale those 22 features, the scale of the features will be still different.
For example, those 22 features maybe between 0.2 to 0.7, but other features will be between 0 and 1 (the minimum will change to 0 and the maximum value will change to 1).
Then, when doing the math, although 0.2 is the minimum of a feature, it is not zeros which can make the learning difficult.