Ölçekleme ve dönüşümler

Python ile Machine Learning için Özellik Mühendisliği

Robert O'Callaghan

Data Scientist

Veriyi ölçekleme

Python ile Machine Learning için Özellik Mühendisliği

Min-Max ölçekleme

Minmax daralma

Python ile Machine Learning için Özellik Mühendisliği

Min-Max ölçekleme

Python ile Machine Learning için Özellik Mühendisliği

Python’da Min-Max ölçekleme

from sklearn.preprocessing import MinMaxScaler

scaler = MinMaxScaler()

scaler.fit(df[['Age']])

df['normalized_age'] = scaler.transform(df[['Age']])
Python ile Machine Learning için Özellik Mühendisliği

Standardizasyon

Python ile Machine Learning için Özellik Mühendisliği

Python’da standardizasyon

from sklearn.preprocessing import StandardScaler

scaler = StandardScaler()

scaler.fit(df[['Age']])

df['standardized_col'] = scaler\
                        .transform(df[['Age']])
Python ile Machine Learning için Özellik Mühendisliği

Log dönüşümü

log görüntüsü

Python ile Machine Learning için Özellik Mühendisliği

Python’da log dönüşümü

from sklearn.preprocessing import PowerTransformer

log = PowerTransformer()

log.fit(df[['ConvertedSalary']])

df['log_ConvertedSalary'] = 
     log.transform(df[['ConvertedSalary']])
Python ile Machine Learning için Özellik Mühendisliği

Final Slayt

Python ile Machine Learning için Özellik Mühendisliği

Preparing Video For Download...