Machine Learning-sollicitatievragen oefenen in Python
Lisa Stuart
Data Scientist

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() --> matrix met verdelingen en scatterplots

scipy.stats.boxcox(data, lmbda= )
lmbda (p) |
$x^p$ | transformatie |
|---|---|---|
| -2 | $x^{-2} = 1/2$ | reciproke kwadraat |
| -1 | $x^{-1} = 1/x$ | reciproke |
| -0.5 | $x^{-1/2} = 1/\sqrt{x}$ | reciproke wortel |
| 0.0 | $\log{(x)}$ | log |
| 0.5 | $x^{1/2} = \sqrt{x}$ | wortel |
| 1 | $x^1 = x$ | geen transformatie |
| 2 | $x^2 = x$ | kwadraat |
Machine Learning-sollicitatievragen oefenen in Python