Program:
package k;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class kl {
static
int sg = 0;
Classifier
|
Precision
|
Recall
|
F-Measure
|
Class
|
DataSet 1
|
0.795
0.639
|
0.816
0.608
|
0.806
0.623
|
tested_negative
tested_positive
|
DataSet 2
|
0.918
0.676
0.645
0.938
|
0.959
0.706
0.290
0.462
|
0.938
0.690
0.400
0.619
|
unacc
acc
good
vgood
|
DataSet 3
|
0.653
0.767
0.250
0.000
0.750
0.538
0.897
|
0.886
0.605
0.059
0.000
0.692
0.778
0.897
|
0.752
0.676
0.095
0.000
0.720
0.636
0.897
|
build wind
float
build wind
non-float
vehic wind
float
vehic wind
non-float
containers
tableware
headlamps
|
Weighted
Avg. DataSet-1
|
0.741
|
0.743
|
0.742
|
|
DataSet-2
|
0.854
|
0.857
|
0.849
|
|
DataSet-3
|
0.695
|
0.706
|
0.686
|
DataSet 1
|
DataSet 2
|
DataSet 3
|
a b <-- classified as
408 92 |
a=tested_negative
105 163
| b=tested_positive
|
a b
c d <-- classified as
1160 49
1 0 | a = unacc
104 271
9 0 | b
= acc
0 47 20
2 | c
= good
0
34 1 30 | d
=vgood
|
a b c d
e f g <--classified as
62 5 2 0 0 1 0 | a=build wind float
21 46
1 0 3
4 1 | b = build wind non-float
11
4 1 0
0 1 0 |
c = vehic wind float
0
0 0 0 0 0 0
| d = vehic wind non-float
0
3 0 0
9 0 1 |
e = containers
0
1 0 0
0 7 1 |
f = tableware
1
1 0 1
0 0 26 | g = headlamps
|
Classifier:
Naive
|
Precision
|
Recall
|
F-Measure
|
Class
|
DataSet 1
|
0.802
0.678
|
0.844
0.612
|
0.823
0.643
|
tested_negative
tested_positive
|
DataSet 2
|
0.917
0.672
0.633
0.931
|
0.960
0.706
0.275
0.415
|
0.938
0.689
0.384
0.574
|
unacc
acc
good
vgood
|
DataSet 3
|
0.455
0.481
0.190
0.000
0.333
0.571
0.857
|
0.729
0.171
0.235
0.000
0.308
0.889
0.828
|
0.560
0.252
0.211
0.000
0.320
0.696
0.842
|
build wind
float
build wind
non-float
vehic wind
float
vehic wind
non-float
containers
tableware
headlamps
|
Weighted
Avg. DataSet-1
|
0.759
|
0.763
|
0.760
|
|
DataSet-2
|
0.852
|
0.855
|
0.847
|
|
DataSet-3
|
0.496
|
0.486
|
0.453
|
DataSet 1
|
DataSet 2
|
DataSet 3
|
a b <-- classified as
422 78
| a=tested_negative
104 164
| b=tested_positive
|
a
b c d
<-- classified as
1161 48
1 0 | a = unacc
104 271
9 0 | b
= acc
1
47 19 2 |
c = good
0
37 1 27 | d
= vgood
|
a b
c d e
f g <-- classified as
51 5
11 0
0 2 1 |
a = build wind float
48 13
6 0 5
3 1 | b = build wind non-float
12
0 4 0
0 1 0 |
c = vehic wind float
0
0 0 0
0 0 0 |
d = vehic wind non-float
0
8 0 0
4 0 1 |
e = containers
0
0 0 0
0 8 1 |
f = tableware
1
1 0 0
3 0 24 | g = headlamps
|
Classifier:
Naive
|
Precision
|
Recall
|
F-Measure
|
Class
|
DataSet 1
|
0.698
0.429
|
0.678
0.451
|
0.688
0.440
|
tested_negative
tested_positive
|
DataSet 2
|
-------
|
-------
|
--------
|
-------
|
DataSet 3
|
0.548
0.460
0.000
0.000
0.500
0.000
0.657
|
0.657
0.526
0.000
0.000
0.231
0.000
0.793
|
0.597
0.491
0.000
0.000
0.316
0.000
0.719
|
build wind
float
build wind
non-float
vehic wind
float
vehic wind
non-float
containers
tableware
headlamps
|
Weighted
Avg. DataSet-1
|
0.604
|
0.599
|
0.601
|
|
DataSet-2
|
-----
|
-----
|
-------
|
|
DataSet-3
|
0.462
|
0.523
|
0.486
|
DataSet 1
|
DataSet 2
|
DataSet 3
|
a b <-- classified as
339 161 |
a=tested_negative
147 121 |
b=tested_positive
|
----------------------------------
|
a b
c d e
f g <-- classified as
46 24
0 0 0
0 0 | a = build wind float
28 40
0 0 2
2 4 | b = build wind non-float
9
8 0 0
0 0 0 |
c = vehic wind float
0
0 0 0
0 0 0 |
d = vehic wind non-float
0
5 0 0
3 0 5 |
e = containers
0
6 0 0
0 0 3 |
f = tableware
1
4 0 0
1 0 23 | g = headlamps
|
Classifier:
Naive
|
Precision
|
Recall
|
F-Measure
|
Class
|
DataSet 1
|
0.694
0.427
|
0.686
0.437
|
0.690
0.432
|
tested_negative
tested_positive
|
DataSet 2
|
--------
|
--------
|
--------
|
-------------
|
DataSet 3
|
1.000
0.387
0.000
0.000
1.000
0.000
0.938
|
0.029
0.987
0.000
0.000
0.154
0.000
0.517
|
0.056
0.556
0.000
0.000
0.267
0.000
0.667
|
build wind
float
build wind
non-float
vehic wind
float
vehic wind
non-float
containers
tableware
headlamps
|
Weighted
Avg. DataSet-1
|
0.601
|
0.599
|
0.600
|
|
DataSet-2
|
------------
|
------------
|
---------
|
|
DataSet-3
|
0.652
|
0.439
|
0.322
|
DataSet 1
|
DataSet 2
|
DataSet 3
|
a b <-- classified as
343 157 |
a=tested_negative
151 117 |
b=tested_positive
|
a b
c d e
f g <-- classified as
2 68
0 0 0
0 0 | a = build wind float
0 75
0 0 0
0 1 | b = build wind non-float
0 17
0 0 0
0 0 | c = vehic wind float
0
0 0 0
0 0 0 |
d = vehic wind non-float
0 11
0 0 2
0 0 | e = containers
0
9 0 0
0 0 0 |
f = tableware
0 14
0 0 0 0
15 | g = headlamps
|
Classifier:
Naive
|
Precision
|
Recall
|
F-Measure
|
Class
|
DataSet 1
|
0.802
0.678
|
0.844
0.612
|
0.823
0.643
|
tested_negative
tested_positive
|
DataSet 2
|
0.917
0.672
0.633
0.931
|
0.960
0.706
0.275
0.415
|
0.938
0.689
0.384
0.574
|
unacc
acc
good
vgood
|
DataSet 3
|
0.455
0.481
0.190
0.00
0.333
0.571
0.857
|
0.729
0.171
0.235
0.000
0.308
0.889
0.828
|
0.560
0.252
0.211
0.000
0.320
0.696
0.842
|
build wind
float
build wind
non-float
vehic wind
float
vehic wind
non-float
containers
tableware
headlamps
|
Weighted
Avg. DataSet-1
|
0.759
|
0.763
|
0.760
|
|
DataSet-2
|
0.852
|
0.855
|
0.847
|
|
DataSet-3
|
0.496
|
0.486
|
0.453
|
DataSet 1
|
DataSet 2
|
DataSet 3
|
a b <-- classified as
422 78 |
a=tested_negative
104 164 |
b=tested_positive
|
a b
c d <-- classified as
1161 48
1 0 | a = unacc
104 271
9 0 | b
= acc
1
47 19 2 | c
= good
0
37 1 27 |
d= vgood
|
a b
c d e
f g <-- classified as
51 5
11 0
0 2 1 |
a = build wind float
48 13
6 0 5
3 1 | b = build wind non-float
12
0 4 0
0 1 0 |
c = vehic wind float
0
0 0 0
0 0 0 |
d = vehic wind non-float
0
8 0 0
4 0 1 |
e = containers
0
0 0 0
0 8 1 |
f = tableware
1
1 0 0
3 0 24 | g = headlamps
|
Classifier:
Naive
|
Precision
|
Recall
|
F-Measure
|
Class
|
DataSet 1
|
0.651
0.000
|
1.000
0.000
|
0.789
0.000
|
tested_negative
tested_positive
|
DataSet 2
|
0.700
0.000
0.000
0.000
|
1.000
0.000
0.000
0.000
|
0.824
0.000
0.000
0.000
|
unacc
acc
good
vgood
|
DataSet 3
|
0.000
0.355
0.000
0.000
0.000
0.000
0.000
|
0.000
1.000
0.000
0.000
0.000
0.000
0.000
|
0.000
0.524
0.000
0.000
0.000
0.000
0.000
|
build wind
float
build wind
non-float
vehic wind
float
vehic wind
non-float
containers
tableware
headlamps
|
Weighted
Avg. DataSet-1
|
0.424
|
0.651
|
0.513
|
|
DataSet-2
|
0.490
|
0.700
|
0.577
|
|
DataSet-3
|
0.126
|
0.355
|
0.186
|
DataSet 1
|
DataSet 2
|
DataSet 3
|
a b <-- classified as
500 0 |
a = tested_negative
268 0 |
b = tested_positive
|
a b
c d <-- classified as
1210 0
0 0 | a = unacc
384 0
0 0 | b = acc
69 0
0 0 | c = good
65 0
0 0 | d = vgood
|
a b
c d e
f g <-- classified as
0 70
0 0 0
0 0 | a = build wind float
0 76
0 0 0
0 0 | b = build wind non-float
0 17
0 0 0
0 0 | c = vehic wind float
0
0 0 0
0 0 0 |
d = vehic wind non-float
0 13
0 0 0
0 0 | e = containers
0
9 0 0
0 0 0 |
f = tableware
0 29
0 0 0
0 0 | g = headlamps
|