Apprentissage supervisé en R : régression
Nina Zumel and John Mount
Win-Vector, LLC
Exemple de relation additive :
plant_height ~ bacteria + sun
L'influence simultanée de deux variables sur le résultat n'est pas additive.
plant_height ~ bacteria + sun + bacteria:sun
L'influence simultanée de deux variables sur le résultat n'est pas additive.
plant_height ~ bacteria + sun + bacteria:sun
sun : catégorielle {"sun", "shade"}Comme deux modèles distincts : un pour le soleil, un pour l'ombre.
yield ~ Stress + SO2 + O3

Metabol ~ Gastric + Sex

Interaction — deux-points (:)
y ~ a:b
Effets principaux et interaction — astérisque (*)
y ~ a*b
# Équivalent à
y ~ a + b + a:b
Produit de deux variables — I
y ~ I(a*b)
équivaut à $y \propto a b$
| Formule | RMSE (validation croisée) |
|---|---|
Metabol ~ Gastric + Sex |
1.46 |
Metabol ~ Gastric * Sex |
1.48 |
Metabol ~ Gastric + Gastric:Sex |
1.39 |
Apprentissage supervisé en R : régression