week 07 classification algorithms in rapidminer - upec/files_1112/lab07-1r-nb.pdf · week 07...

15
Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls Algorithms: Zero-R, One-R, NaiveBayes, K-NN 1

Upload: dangthien

Post on 11-May-2018

227 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

Week 07

Classification algorithms in

Rapidminer

� Dataset: playtennis and risk

week 07 – datasets.xls

� Algorithms: Zero-R, One-R, NaiveBayes, K-NN

1

Page 2: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

2

run in

debug

mode?

Page 3: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

3

Indicates if the

votes should

be weighted by

similarity.

Try with k=1

Page 4: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

4

unlabled

data

In this example we are

using the same data so we

need to duplicate the

node.

Page 5: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

5

Page 6: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

6

risk dataset

Page 7: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

7

Why is this so accurate? What is wrong here?

Page 8: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

8

double click

Page 9: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

9

Page 10: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

10

Page 11: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

11

Page 12: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

12

Page 13: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

13

results with k-nn

Page 14: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

14

results with the Naive Bayes model

Page 15: Week 07 Classification algorithms in Rapidminer - UPec/files_1112/lab07-1R-NB.pdf · Week 07 Classification algorithms in Rapidminer Dataset: playtennis and risk week 07 – datasets.xls

15

results with the oneR model