การกระจายของข้อมูลและการแปลงข้อมูล

ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

Lisa Stuart

Data Scientist

การกระจายที่แตกต่างกัน

การกระจายของข้อมูล

1 https://www.researchgate.net/figure/Bias-Training-and-test-data-sets-are-drawn-from-different-distributions_fig22_330485084
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

การแบ่งชุดข้อมูล Train/Test

train, test = train_test_split(X, y, test_size=0.3)

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)

sns.pairplot() --> พล็อตเมทริกซ์ของการกระจายและ scatterplot

ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

การแปลงข้อมูล

การแปลงข้อมูล

1 https://www.researchgate.net/figure/Example-of-the-effect-of-a-log-transformation-on-the-distribution-of-the-dataset_fig20_308007227
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python
Box-Cox Transformations

scipy.stats.boxcox(data, lmbda= )

lmbda (p) $x^p$ การแปลง
-2 $x^{-2} = 1/2$ reciprocal square
-1 $x^{-1} = 1/x$ reciprocal
-0.5 $x^{-1/2} = 1/\sqrt{x}$ reciprocal square root
0.0 $\log{(x)}$ log
0.5 $x^{1/2} = \sqrt{x}$ square root
1 $x^1 = x$ ไม่แปลง
2 $x^2 = x$ square
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

มาฝึกกันเถอะ!

ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

Preparing Video For Download...