Beruflich Dokumente
Kultur Dokumente
Preprocessing
Preprocessing: lters
For a numeric transformation filter, click Choose, and then follow the path shown below, selecting NumericTransform. The pop-up to set up the transformation emerge by clicking the NumericTransform box next to the Choose button. To go-back from the transformation, press the button Undo in the preprocessing menu.
Preprocessing: lters
Feature
selecHon
A"ribute
evaluator
op/ons:
Search
method
op/ons:
Go to the Select attributes section to perform feature selection. You need to define 2 things in order to do so: what attribute evaluator and what search method to use.
10
11
Remove unselected a"ributes in the TRAINING set; save the modied TRAINING le
Then
open
the
TEST
set
le,
and
remove
unselected
a"ributes
in
the
same
way.
Save
the
modied
TRAINING
and
TEST
set
les,
open
them
in
WEKA
and
run
your
model
12
13
ClassicaHon: K-NN
To create a K-NN classifier, go to the classifier tab and select options as indicated above. Once you select Ibk, you can click in the Ibk box (right next to the Choose button) and set the parameters in the pop-up window (figure in the right)
14
15
16
17
18
19
ClassicaHon: Output
20
ClassicaHon: Output
TP
rate:
Class
1:
2056/(2056+2770)=0.427
Class
2:
3213/(3213+1957)=0.668
The
diagonals
of
TP
and
FP
rate
sum
up
to
1
21
ClassicaHon: Output
22
ClassicaHon:
Output
Predicted
class
Class
probability
es/mate
NOTES: 1:1 class 1, label 1 2:0 class 2, label 0 Class labels can be anything First (second) column in class probability estimates indicate probability of being class 1 (class 2). E.g., the predicted prob. of obs.1 being class 1 is 0.578 + indicates mistakes in the classification * Indicates the predicted class
23
ClassicaHon:
Output
Predicted
class
Class
probability
es/mate
Class probability estimates can be stored using the command line, an example below. Get to the command line in Windows by typing cmd in the Run dialogue box.
copy your training and test .arff files to the Weka directory, and then use the following command line: java -cp weka.jar weka.classifiers.trees.J48 -t TRAIN.arff -T TEST.arff -p 0 >filename.probs
24
25
VisualizaHon tab
26
VisualizaHon tab
27