Chuẩn hóa và biến đổi

Feature Engineering cho Machine Learning bằng Python

Robert O'Callaghan

Data Scientist

Co giãn dữ liệu

Feature Engineering cho Machine Learning bằng Python

Chuẩn hóa Min-Max

Thu nhỏ Min-Max

Feature Engineering cho Machine Learning bằng Python

Chuẩn hóa Min-Max

Feature Engineering cho Machine Learning bằng Python

Chuẩn hóa Min-Max trong Python

from sklearn.preprocessing import MinMaxScaler

scaler = MinMaxScaler()

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

df['normalized_age'] = scaler.transform(df[['Age']])
Feature Engineering cho Machine Learning bằng Python

Chuẩn hóa

Feature Engineering cho Machine Learning bằng Python

Chuẩn hóa trong Python

from sklearn.preprocessing import StandardScaler

scaler = StandardScaler()

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

df['standardized_col'] = scaler\
                        .transform(df[['Age']])
Feature Engineering cho Machine Learning bằng Python

Biến đổi log

ảnh log

Feature Engineering cho Machine Learning bằng Python

Biến đổi log trong Python

from sklearn.preprocessing import PowerTransformer

log = PowerTransformer()

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

df['log_ConvertedSalary'] = 
     log.transform(df[['ConvertedSalary']])
Feature Engineering cho Machine Learning bằng Python

Trang cuối

Feature Engineering cho Machine Learning bằng Python

Preparing Video For Download...