bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/Python/Data Science and Scientific Python
Python•Data Science and Scientific Python

Machine Learning - Scale

Scale Features

When your data has different values, and even different measurement units, it can be difficult to compare them. What is kilograms compared to meters? Or altitude compared to time? The answer to this problem is scaling. We can scale data into new values that are easier to compare. Take a look at the table below, it is the same data set that we used in the multiple regression chapter, but this time the volume column contains values in liters instead of cm

(1.0 instead of 1000).

Car

Model

Volume

Weight

Co2

Toyota

Aygo

1.0 790 99

Mitsubishi

Space Star

1.2 1160 95

Skoda

Citigo

1.0 929 95

Fiat

500 0.9 865 90

Mini

Cooper

1.5 1140 105 VW Up! 1.0 929 105

Skoda

Fabia

1.4 1109 90

Mercedes

A-Class

1.5 1365 92

Ford

Fiesta

1.5 1112 98

Audi

A1 1.6 1150 99

Hyundai

I20 1.1 980 99

Suzuki

Previous

Matplotlib Bars

Next

Matplotlib Histograms