Browse Source

Cours classification

master
Maxime Wack 6 years ago
parent
commit
2ccfa1aad9
6 changed files with 22 additions and 0 deletions
  1. +1
    -0
      03_Classification/.~lock.cours.odp#
  2. BIN
      03_Classification/LogReg_1.png
  3. BIN
      03_Classification/classif.png
  4. BIN
      03_Classification/cours.odp
  5. +21
    -0
      03_Classification/figures.R
  6. BIN
      03_Classification/tree.png

+ 1
- 0
03_Classification/.~lock.cours.odp# View File

@@ -0,0 +1 @@
,maxx,maxx-hegp.localdomain,03.04.2018 17:06,file:///home/maxx/.config/libreoffice/4;

BIN
03_Classification/LogReg_1.png View File

Before After
Width: 571  |  Height: 306  |  Size: 14KB

BIN
03_Classification/classif.png View File

Before After
Width: 2578  |  Height: 3172  |  Size: 121KB

BIN
03_Classification/cours.odp View File


+ 21
- 0
03_Classification/figures.R View File

@@ -0,0 +1,21 @@
library(tidyverse)

# Classification

data(iris)

(
iris %>%
ggplot() +
aes(x = Petal.Width, y = Sepal.Width, color = Species) +
geom_point()
) %>%
ggsave(plot = ., filename = "classif.png")


library(rpart)

rpart(Species ~ ., data = iris) %T>%
plot(branch = .5, margin = .5) %>%
text(use.n = T, all = T, pretty = T, fancy = T)


BIN
03_Classification/tree.png View File

Before After
Width: 527  |  Height: 524  |  Size: 29KB

Loading…
Cancel
Save