Can someone explain what is MinMaxScaler in Python do and how to use it? or What is MinMaxScaler in P

22 Replies, 1119 Views

Not a dumb Q at all! The minmaxscaler in python do is a lifesaver when your features have wild ranges.

Imagine trying to compare age (0-100) and salary (0-1,000,000)—minmax puts them on the same playing field.

Quick how-to:
```python
scaler = MinMaxScaler(feature_range=(0, 1))
scaler.fit(X_train)
X_train_scaled = scaler.transform(X_train)
X_test_scaled = scaler.transform(X_test)
```
Boom, done!

Messages In This Thread



Users browsing this thread: 1 Guest(s)