Min-Max Scaling of Feature Values
Data Preparation & Feature Engineering DS practice problem on Onlearn.
Difficulty: easy.
Topics: Understanding Min-Max Scaling (Normalization), Min-Max Formula, Floating Point Precision, Array Vectorization, Handling Zero Division, Data Range Mapping, Data Preprocessing, Feature Engineering, Statistical Normalization, Numerical Analysis, Machine Learning Pipelines, Feature Scaling, Data Transformation, Outlier Sensitivity, Range Bound Normalization, Input Data Cleaning.
Implement a function that performs Min Max scaling on a list of numerical values. The function should transform each value such that the minimum value in the list becomes 0 and the maximum value becomes 1. If all values in the list are identical, return a list of zeros to avoid division by zero.