extractPrediction: Extract predictions and class probabilities from train...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

These functions can be used for a single train object or to loop through a number of train objects to calculate the training and test data predictions and class probabilities.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S3 method for class 'list'
predict(object, ...)

## S3 method for class 'train'
predict(object, newdata = NULL, type = "raw", na.action = na.omit, ...)

extractPrediction(models,
                  testX = NULL, testY = NULL,
                  unkX = NULL, 
                  unkOnly = !is.null(unkX) & is.null(testX),
                  verbose = FALSE)

extractProb(models,
            testX = NULL,  testY = NULL,
            unkX = NULL, 
            unkOnly = !is.null(unkX) & is.null(testX),
            verbose = FALSE)

Arguments

object

For predict.train, an object of class train. For predict.list, a list of objects of class train.

newdata

an optional set of data to predict on. If NULL, then the original training data are used

type

either "raw" or "prob", for the number/class predictions or class probabilities, respectively. Class probabilities are not available for all classification models

models

a list of objects of the class train. The objects must have been generated with fitBest = FALSE and returnData = TRUE.

na.action

the method for handling missing data

testX

an optional set of data to predict

testY

an optional outcome corresponding to the data given in testX

unkX

another optional set of data to predict without known outcomes

unkOnly

a logical to bypass training and test set predictions. This is useful if speed is needed for unknown samples.

verbose

a logical for printing messages

...

additional arguments to be passed to other methods

Details

These functions are wrappers for the specific prediction functions in each modeling package. In each case, the optimal tuning values given in the tuneValue slot of the finalModel object are used to predict.

To get simple predictions for a new data set, the predict function can be used. Limits can be imposed on the range of predictions. See trainControl for more information.

To get predictions for a series of models at once, a list of train objects can be passes to the predict function and a list of model predictions will be returned.

The two extraction functions can be used to get the predictions and observed outcomes at once for the training, test and/or unknown samples at once in a single data frame (instead of a list of just the predictions). These objects can then be passes to plotObsVsPred or plotClassProbs.

Value

For predict.train, a vector of predictions if type = "raw" or a data frame of class probabilities for type = "probs". In the latter case, there are columns for each class.

For predict.list, a list results. Each element is produced by predict.train.

For extractPrediction, a data frame with columns:

obs

the observed training and test data

pred

predicted values

model

the type of model used to predict

object

the names of the objects within models. If models is an un-named list, the values of object will be "Object1", "Object2" and so on

dataType

"Training", "Test" or "Unknown" depending on what was specified

For extractProb, a data frame. There is a column for each class containing the probabilities. The remaining columns are the same as above (although the pred column is the predicted class)

Author(s)

Max Kuhn

References

Kuhn (2008), “Building Predictive Models in R Using the caret” (http://www.jstatsoft.org/v28/i05/)

See Also

plotObsVsPred, plotClassProbs, trainControl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
   ## Not run: 

knnFit <- train(Species ~ ., data = iris, method = "knn", 
                trControl = trainControl(method = "cv"))

rdaFit <- train(Species ~ ., data = iris, method = "rda", 
                trControl = trainControl(method = "cv"))

predict(knnFit)
predict(knnFit, type = "prob")

bothModels <- list(knn = knnFit,
                   tree = rdaFit)

predict(bothModels)

extractPrediction(bothModels, testX = iris[1:10, -5])
extractProb(bothModels, testX = iris[1:10, -5])
  
## End(Not run)

Example output

Loading required package: lattice
Loading required package: ggplot2
Loading required package: klaR
Loading required package: MASS
  [1] setosa     setosa     setosa     setosa     setosa     setosa    
  [7] setosa     setosa     setosa     setosa     setosa     setosa    
 [13] setosa     setosa     setosa     setosa     setosa     setosa    
 [19] setosa     setosa     setosa     setosa     setosa     setosa    
 [25] setosa     setosa     setosa     setosa     setosa     setosa    
 [31] setosa     setosa     setosa     setosa     setosa     setosa    
 [37] setosa     setosa     setosa     setosa     setosa     setosa    
 [43] setosa     setosa     setosa     setosa     setosa     setosa    
 [49] setosa     setosa     versicolor versicolor versicolor versicolor
 [55] versicolor versicolor versicolor versicolor versicolor versicolor
 [61] versicolor versicolor versicolor versicolor versicolor versicolor
 [67] versicolor versicolor versicolor versicolor versicolor versicolor
 [73] virginica  versicolor versicolor versicolor versicolor versicolor
 [79] versicolor versicolor versicolor versicolor versicolor virginica 
 [85] versicolor versicolor versicolor versicolor versicolor versicolor
 [91] versicolor versicolor versicolor versicolor versicolor versicolor
 [97] versicolor versicolor versicolor versicolor virginica  virginica 
[103] virginica  virginica  virginica  virginica  versicolor virginica 
[109] virginica  virginica  virginica  virginica  virginica  virginica 
[115] virginica  virginica  virginica  virginica  virginica  virginica 
[121] virginica  virginica  virginica  virginica  virginica  virginica 
[127] virginica  virginica  virginica  virginica  virginica  virginica 
[133] virginica  virginica  virginica  virginica  virginica  virginica 
[139] virginica  virginica  virginica  virginica  virginica  virginica 
[145] virginica  virginica  virginica  virginica  virginica  virginica 
Levels: setosa versicolor virginica
    setosa versicolor  virginica
1        1  0.0000000 0.00000000
2        1  0.0000000 0.00000000
3        1  0.0000000 0.00000000
4        1  0.0000000 0.00000000
5        1  0.0000000 0.00000000
6        1  0.0000000 0.00000000
7        1  0.0000000 0.00000000
8        1  0.0000000 0.00000000
9        1  0.0000000 0.00000000
10       1  0.0000000 0.00000000
11       1  0.0000000 0.00000000
12       1  0.0000000 0.00000000
13       1  0.0000000 0.00000000
14       1  0.0000000 0.00000000
15       1  0.0000000 0.00000000
16       1  0.0000000 0.00000000
17       1  0.0000000 0.00000000
18       1  0.0000000 0.00000000
19       1  0.0000000 0.00000000
20       1  0.0000000 0.00000000
21       1  0.0000000 0.00000000
22       1  0.0000000 0.00000000
23       1  0.0000000 0.00000000
24       1  0.0000000 0.00000000
25       1  0.0000000 0.00000000
26       1  0.0000000 0.00000000
27       1  0.0000000 0.00000000
28       1  0.0000000 0.00000000
29       1  0.0000000 0.00000000
30       1  0.0000000 0.00000000
31       1  0.0000000 0.00000000
32       1  0.0000000 0.00000000
33       1  0.0000000 0.00000000
34       1  0.0000000 0.00000000
35       1  0.0000000 0.00000000
36       1  0.0000000 0.00000000
37       1  0.0000000 0.00000000
38       1  0.0000000 0.00000000
39       1  0.0000000 0.00000000
40       1  0.0000000 0.00000000
41       1  0.0000000 0.00000000
42       1  0.0000000 0.00000000
43       1  0.0000000 0.00000000
44       1  0.0000000 0.00000000
45       1  0.0000000 0.00000000
46       1  0.0000000 0.00000000
47       1  0.0000000 0.00000000
48       1  0.0000000 0.00000000
49       1  0.0000000 0.00000000
50       1  0.0000000 0.00000000
51       0  1.0000000 0.00000000
52       0  1.0000000 0.00000000
53       0  1.0000000 0.00000000
54       0  1.0000000 0.00000000
55       0  1.0000000 0.00000000
56       0  1.0000000 0.00000000
57       0  0.7777778 0.22222222
58       0  1.0000000 0.00000000
59       0  1.0000000 0.00000000
60       0  1.0000000 0.00000000
61       0  1.0000000 0.00000000
62       0  1.0000000 0.00000000
63       0  1.0000000 0.00000000
64       0  0.6666667 0.33333333
65       0  1.0000000 0.00000000
66       0  1.0000000 0.00000000
67       0  1.0000000 0.00000000
68       0  1.0000000 0.00000000
69       0  0.6666667 0.33333333
70       0  1.0000000 0.00000000
71       0  0.5555556 0.44444444
72       0  1.0000000 0.00000000
73       0  0.4444444 0.55555556
74       0  1.0000000 0.00000000
75       0  1.0000000 0.00000000
76       0  1.0000000 0.00000000
77       0  1.0000000 0.00000000
78       0  0.5555556 0.44444444
79       0  0.8888889 0.11111111
80       0  1.0000000 0.00000000
81       0  1.0000000 0.00000000
82       0  1.0000000 0.00000000
83       0  1.0000000 0.00000000
84       0  0.2222222 0.77777778
85       0  1.0000000 0.00000000
86       0  0.8888889 0.11111111
87       0  1.0000000 0.00000000
88       0  1.0000000 0.00000000
89       0  1.0000000 0.00000000
90       0  1.0000000 0.00000000
91       0  1.0000000 0.00000000
92       0  0.9090909 0.09090909
93       0  1.0000000 0.00000000
94       0  1.0000000 0.00000000
95       0  1.0000000 0.00000000
96       0  1.0000000 0.00000000
97       0  1.0000000 0.00000000
98       0  1.0000000 0.00000000
99       0  1.0000000 0.00000000
100      0  1.0000000 0.00000000
101      0  0.0000000 1.00000000
102      0  0.1111111 0.88888889
103      0  0.0000000 1.00000000
104      0  0.0000000 1.00000000
105      0  0.0000000 1.00000000
106      0  0.0000000 1.00000000
107      0  0.7777778 0.22222222
108      0  0.0000000 1.00000000
109      0  0.0000000 1.00000000
110      0  0.0000000 1.00000000
111      0  0.1111111 0.88888889
112      0  0.0000000 1.00000000
113      0  0.0000000 1.00000000
114      0  0.1000000 0.90000000
115      0  0.0000000 1.00000000
116      0  0.0000000 1.00000000
117      0  0.0000000 1.00000000
118      0  0.0000000 1.00000000
119      0  0.0000000 1.00000000
120      0  0.3000000 0.70000000
121      0  0.0000000 1.00000000
122      0  0.1111111 0.88888889
123      0  0.0000000 1.00000000
124      0  0.2222222 0.77777778
125      0  0.0000000 1.00000000
126      0  0.0000000 1.00000000
127      0  0.3333333 0.66666667
128      0  0.4000000 0.60000000
129      0  0.0000000 1.00000000
130      0  0.0000000 1.00000000
131      0  0.0000000 1.00000000
132      0  0.0000000 1.00000000
133      0  0.0000000 1.00000000
134      0  0.4444444 0.55555556
135      0  0.2222222 0.77777778
136      0  0.0000000 1.00000000
137      0  0.0000000 1.00000000
138      0  0.0000000 1.00000000
139      0  0.4444444 0.55555556
140      0  0.0000000 1.00000000
141      0  0.0000000 1.00000000
142      0  0.0000000 1.00000000
143      0  0.1111111 0.88888889
144      0  0.0000000 1.00000000
145      0  0.0000000 1.00000000
146      0  0.0000000 1.00000000
147      0  0.2222222 0.77777778
148      0  0.1111111 0.88888889
149      0  0.0000000 1.00000000
150      0  0.2222222 0.77777778
$knn
  [1] setosa     setosa     setosa     setosa     setosa     setosa    
  [7] setosa     setosa     setosa     setosa     setosa     setosa    
 [13] setosa     setosa     setosa     setosa     setosa     setosa    
 [19] setosa     setosa     setosa     setosa     setosa     setosa    
 [25] setosa     setosa     setosa     setosa     setosa     setosa    
 [31] setosa     setosa     setosa     setosa     setosa     setosa    
 [37] setosa     setosa     setosa     setosa     setosa     setosa    
 [43] setosa     setosa     setosa     setosa     setosa     setosa    
 [49] setosa     setosa     versicolor versicolor versicolor versicolor
 [55] versicolor versicolor versicolor versicolor versicolor versicolor
 [61] versicolor versicolor versicolor versicolor versicolor versicolor
 [67] versicolor versicolor versicolor versicolor versicolor versicolor
 [73] virginica  versicolor versicolor versicolor versicolor versicolor
 [79] versicolor versicolor versicolor versicolor versicolor virginica 
 [85] versicolor versicolor versicolor versicolor versicolor versicolor
 [91] versicolor versicolor versicolor versicolor versicolor versicolor
 [97] versicolor versicolor versicolor versicolor virginica  virginica 
[103] virginica  virginica  virginica  virginica  versicolor virginica 
[109] virginica  virginica  virginica  virginica  virginica  virginica 
[115] virginica  virginica  virginica  virginica  virginica  virginica 
[121] virginica  virginica  virginica  virginica  virginica  virginica 
[127] virginica  virginica  virginica  virginica  virginica  virginica 
[133] virginica  virginica  virginica  virginica  virginica  virginica 
[139] virginica  virginica  virginica  virginica  virginica  virginica 
[145] virginica  virginica  virginica  virginica  virginica  virginica 
Levels: setosa versicolor virginica

$tree
  [1] setosa     setosa     setosa     setosa     setosa     setosa    
  [7] setosa     setosa     setosa     setosa     setosa     setosa    
 [13] setosa     setosa     setosa     setosa     setosa     setosa    
 [19] setosa     setosa     setosa     setosa     setosa     setosa    
 [25] setosa     setosa     setosa     setosa     setosa     setosa    
 [31] setosa     setosa     setosa     setosa     setosa     setosa    
 [37] setosa     setosa     setosa     setosa     setosa     setosa    
 [43] setosa     setosa     setosa     setosa     setosa     setosa    
 [49] setosa     setosa     versicolor versicolor versicolor versicolor
 [55] versicolor versicolor versicolor versicolor versicolor versicolor
 [61] versicolor versicolor versicolor versicolor versicolor versicolor
 [67] versicolor versicolor versicolor versicolor virginica  versicolor
 [73] versicolor versicolor versicolor versicolor versicolor versicolor
 [79] versicolor versicolor versicolor versicolor versicolor virginica 
 [85] versicolor versicolor versicolor versicolor versicolor versicolor
 [91] versicolor versicolor versicolor versicolor versicolor versicolor
 [97] versicolor versicolor versicolor versicolor virginica  virginica 
[103] virginica  virginica  virginica  virginica  virginica  virginica 
[109] virginica  virginica  virginica  virginica  virginica  virginica 
[115] virginica  virginica  virginica  virginica  virginica  virginica 
[121] virginica  virginica  virginica  virginica  virginica  virginica 
[127] virginica  virginica  virginica  virginica  virginica  virginica 
[133] virginica  versicolor virginica  virginica  virginica  virginica 
[139] virginica  virginica  virginica  virginica  virginica  virginica 
[145] virginica  virginica  virginica  virginica  virginica  virginica 
Levels: setosa versicolor virginica

           obs       pred model dataType object
1       setosa     setosa   knn Training    knn
2       setosa     setosa   knn Training    knn
3       setosa     setosa   knn Training    knn
4       setosa     setosa   knn Training    knn
5       setosa     setosa   knn Training    knn
6       setosa     setosa   knn Training    knn
7       setosa     setosa   knn Training    knn
8       setosa     setosa   knn Training    knn
9       setosa     setosa   knn Training    knn
10      setosa     setosa   knn Training    knn
11      setosa     setosa   knn Training    knn
12      setosa     setosa   knn Training    knn
13      setosa     setosa   knn Training    knn
14      setosa     setosa   knn Training    knn
15      setosa     setosa   knn Training    knn
16      setosa     setosa   knn Training    knn
17      setosa     setosa   knn Training    knn
18      setosa     setosa   knn Training    knn
19      setosa     setosa   knn Training    knn
20      setosa     setosa   knn Training    knn
21      setosa     setosa   knn Training    knn
22      setosa     setosa   knn Training    knn
23      setosa     setosa   knn Training    knn
24      setosa     setosa   knn Training    knn
25      setosa     setosa   knn Training    knn
26      setosa     setosa   knn Training    knn
27      setosa     setosa   knn Training    knn
28      setosa     setosa   knn Training    knn
29      setosa     setosa   knn Training    knn
30      setosa     setosa   knn Training    knn
31      setosa     setosa   knn Training    knn
32      setosa     setosa   knn Training    knn
33      setosa     setosa   knn Training    knn
34      setosa     setosa   knn Training    knn
35      setosa     setosa   knn Training    knn
36      setosa     setosa   knn Training    knn
37      setosa     setosa   knn Training    knn
38      setosa     setosa   knn Training    knn
39      setosa     setosa   knn Training    knn
40      setosa     setosa   knn Training    knn
41      setosa     setosa   knn Training    knn
42      setosa     setosa   knn Training    knn
43      setosa     setosa   knn Training    knn
44      setosa     setosa   knn Training    knn
45      setosa     setosa   knn Training    knn
46      setosa     setosa   knn Training    knn
47      setosa     setosa   knn Training    knn
48      setosa     setosa   knn Training    knn
49      setosa     setosa   knn Training    knn
50      setosa     setosa   knn Training    knn
51  versicolor versicolor   knn Training    knn
52  versicolor versicolor   knn Training    knn
53  versicolor versicolor   knn Training    knn
54  versicolor versicolor   knn Training    knn
55  versicolor versicolor   knn Training    knn
56  versicolor versicolor   knn Training    knn
57  versicolor versicolor   knn Training    knn
58  versicolor versicolor   knn Training    knn
59  versicolor versicolor   knn Training    knn
60  versicolor versicolor   knn Training    knn
61  versicolor versicolor   knn Training    knn
62  versicolor versicolor   knn Training    knn
63  versicolor versicolor   knn Training    knn
64  versicolor versicolor   knn Training    knn
65  versicolor versicolor   knn Training    knn
66  versicolor versicolor   knn Training    knn
67  versicolor versicolor   knn Training    knn
68  versicolor versicolor   knn Training    knn
69  versicolor versicolor   knn Training    knn
70  versicolor versicolor   knn Training    knn
71  versicolor versicolor   knn Training    knn
72  versicolor versicolor   knn Training    knn
73  versicolor  virginica   knn Training    knn
74  versicolor versicolor   knn Training    knn
75  versicolor versicolor   knn Training    knn
76  versicolor versicolor   knn Training    knn
77  versicolor versicolor   knn Training    knn
78  versicolor versicolor   knn Training    knn
79  versicolor versicolor   knn Training    knn
80  versicolor versicolor   knn Training    knn
81  versicolor versicolor   knn Training    knn
82  versicolor versicolor   knn Training    knn
83  versicolor versicolor   knn Training    knn
84  versicolor  virginica   knn Training    knn
85  versicolor versicolor   knn Training    knn
86  versicolor versicolor   knn Training    knn
87  versicolor versicolor   knn Training    knn
88  versicolor versicolor   knn Training    knn
89  versicolor versicolor   knn Training    knn
90  versicolor versicolor   knn Training    knn
91  versicolor versicolor   knn Training    knn
92  versicolor versicolor   knn Training    knn
93  versicolor versicolor   knn Training    knn
94  versicolor versicolor   knn Training    knn
95  versicolor versicolor   knn Training    knn
96  versicolor versicolor   knn Training    knn
97  versicolor versicolor   knn Training    knn
98  versicolor versicolor   knn Training    knn
99  versicolor versicolor   knn Training    knn
100 versicolor versicolor   knn Training    knn
101  virginica  virginica   knn Training    knn
102  virginica  virginica   knn Training    knn
103  virginica  virginica   knn Training    knn
104  virginica  virginica   knn Training    knn
105  virginica  virginica   knn Training    knn
106  virginica  virginica   knn Training    knn
107  virginica versicolor   knn Training    knn
108  virginica  virginica   knn Training    knn
109  virginica  virginica   knn Training    knn
110  virginica  virginica   knn Training    knn
111  virginica  virginica   knn Training    knn
112  virginica  virginica   knn Training    knn
113  virginica  virginica   knn Training    knn
114  virginica  virginica   knn Training    knn
115  virginica  virginica   knn Training    knn
116  virginica  virginica   knn Training    knn
117  virginica  virginica   knn Training    knn
118  virginica  virginica   knn Training    knn
119  virginica  virginica   knn Training    knn
120  virginica  virginica   knn Training    knn
121  virginica  virginica   knn Training    knn
122  virginica  virginica   knn Training    knn
123  virginica  virginica   knn Training    knn
124  virginica  virginica   knn Training    knn
125  virginica  virginica   knn Training    knn
126  virginica  virginica   knn Training    knn
127  virginica  virginica   knn Training    knn
128  virginica  virginica   knn Training    knn
129  virginica  virginica   knn Training    knn
130  virginica  virginica   knn Training    knn
131  virginica  virginica   knn Training    knn
132  virginica  virginica   knn Training    knn
133  virginica  virginica   knn Training    knn
134  virginica  virginica   knn Training    knn
135  virginica  virginica   knn Training    knn
136  virginica  virginica   knn Training    knn
137  virginica  virginica   knn Training    knn
138  virginica  virginica   knn Training    knn
139  virginica  virginica   knn Training    knn
140  virginica  virginica   knn Training    knn
141  virginica  virginica   knn Training    knn
142  virginica  virginica   knn Training    knn
143  virginica  virginica   knn Training    knn
144  virginica  virginica   knn Training    knn
145  virginica  virginica   knn Training    knn
146  virginica  virginica   knn Training    knn
147  virginica  virginica   knn Training    knn
148  virginica  virginica   knn Training    knn
149  virginica  virginica   knn Training    knn
150  virginica  virginica   knn Training    knn
151     setosa     setosa   rda Training   tree
152     setosa     setosa   rda Training   tree
153     setosa     setosa   rda Training   tree
154     setosa     setosa   rda Training   tree
155     setosa     setosa   rda Training   tree
156     setosa     setosa   rda Training   tree
157     setosa     setosa   rda Training   tree
158     setosa     setosa   rda Training   tree
159     setosa     setosa   rda Training   tree
160     setosa     setosa   rda Training   tree
161     setosa     setosa   rda Training   tree
162     setosa     setosa   rda Training   tree
163     setosa     setosa   rda Training   tree
164     setosa     setosa   rda Training   tree
165     setosa     setosa   rda Training   tree
166     setosa     setosa   rda Training   tree
167     setosa     setosa   rda Training   tree
168     setosa     setosa   rda Training   tree
169     setosa     setosa   rda Training   tree
170     setosa     setosa   rda Training   tree
171     setosa     setosa   rda Training   tree
172     setosa     setosa   rda Training   tree
173     setosa     setosa   rda Training   tree
174     setosa     setosa   rda Training   tree
175     setosa     setosa   rda Training   tree
176     setosa     setosa   rda Training   tree
177     setosa     setosa   rda Training   tree
178     setosa     setosa   rda Training   tree
179     setosa     setosa   rda Training   tree
180     setosa     setosa   rda Training   tree
181     setosa     setosa   rda Training   tree
182     setosa     setosa   rda Training   tree
183     setosa     setosa   rda Training   tree
184     setosa     setosa   rda Training   tree
185     setosa     setosa   rda Training   tree
186     setosa     setosa   rda Training   tree
187     setosa     setosa   rda Training   tree
188     setosa     setosa   rda Training   tree
189     setosa     setosa   rda Training   tree
190     setosa     setosa   rda Training   tree
191     setosa     setosa   rda Training   tree
192     setosa     setosa   rda Training   tree
193     setosa     setosa   rda Training   tree
194     setosa     setosa   rda Training   tree
195     setosa     setosa   rda Training   tree
196     setosa     setosa   rda Training   tree
197     setosa     setosa   rda Training   tree
198     setosa     setosa   rda Training   tree
199     setosa     setosa   rda Training   tree
200     setosa     setosa   rda Training   tree
201 versicolor versicolor   rda Training   tree
202 versicolor versicolor   rda Training   tree
203 versicolor versicolor   rda Training   tree
204 versicolor versicolor   rda Training   tree
205 versicolor versicolor   rda Training   tree
206 versicolor versicolor   rda Training   tree
207 versicolor versicolor   rda Training   tree
208 versicolor versicolor   rda Training   tree
209 versicolor versicolor   rda Training   tree
210 versicolor versicolor   rda Training   tree
211 versicolor versicolor   rda Training   tree
212 versicolor versicolor   rda Training   tree
213 versicolor versicolor   rda Training   tree
214 versicolor versicolor   rda Training   tree
215 versicolor versicolor   rda Training   tree
216 versicolor versicolor   rda Training   tree
217 versicolor versicolor   rda Training   tree
218 versicolor versicolor   rda Training   tree
219 versicolor versicolor   rda Training   tree
220 versicolor versicolor   rda Training   tree
221 versicolor  virginica   rda Training   tree
222 versicolor versicolor   rda Training   tree
223 versicolor versicolor   rda Training   tree
224 versicolor versicolor   rda Training   tree
225 versicolor versicolor   rda Training   tree
226 versicolor versicolor   rda Training   tree
227 versicolor versicolor   rda Training   tree
228 versicolor versicolor   rda Training   tree
229 versicolor versicolor   rda Training   tree
230 versicolor versicolor   rda Training   tree
231 versicolor versicolor   rda Training   tree
232 versicolor versicolor   rda Training   tree
233 versicolor versicolor   rda Training   tree
234 versicolor  virginica   rda Training   tree
235 versicolor versicolor   rda Training   tree
236 versicolor versicolor   rda Training   tree
237 versicolor versicolor   rda Training   tree
238 versicolor versicolor   rda Training   tree
239 versicolor versicolor   rda Training   tree
240 versicolor versicolor   rda Training   tree
241 versicolor versicolor   rda Training   tree
242 versicolor versicolor   rda Training   tree
243 versicolor versicolor   rda Training   tree
244 versicolor versicolor   rda Training   tree
245 versicolor versicolor   rda Training   tree
246 versicolor versicolor   rda Training   tree
247 versicolor versicolor   rda Training   tree
248 versicolor versicolor   rda Training   tree
249 versicolor versicolor   rda Training   tree
250 versicolor versicolor   rda Training   tree
251  virginica  virginica   rda Training   tree
252  virginica  virginica   rda Training   tree
253  virginica  virginica   rda Training   tree
254  virginica  virginica   rda Training   tree
255  virginica  virginica   rda Training   tree
256  virginica  virginica   rda Training   tree
257  virginica  virginica   rda Training   tree
258  virginica  virginica   rda Training   tree
259  virginica  virginica   rda Training   tree
260  virginica  virginica   rda Training   tree
261  virginica  virginica   rda Training   tree
262  virginica  virginica   rda Training   tree
263  virginica  virginica   rda Training   tree
264  virginica  virginica   rda Training   tree
265  virginica  virginica   rda Training   tree
266  virginica  virginica   rda Training   tree
267  virginica  virginica   rda Training   tree
268  virginica  virginica   rda Training   tree
269  virginica  virginica   rda Training   tree
270  virginica  virginica   rda Training   tree
271  virginica  virginica   rda Training   tree
272  virginica  virginica   rda Training   tree
273  virginica  virginica   rda Training   tree
274  virginica  virginica   rda Training   tree
275  virginica  virginica   rda Training   tree
276  virginica  virginica   rda Training   tree
277  virginica  virginica   rda Training   tree
278  virginica  virginica   rda Training   tree
279  virginica  virginica   rda Training   tree
280  virginica  virginica   rda Training   tree
281  virginica  virginica   rda Training   tree
282  virginica  virginica   rda Training   tree
283  virginica  virginica   rda Training   tree
284  virginica versicolor   rda Training   tree
285  virginica  virginica   rda Training   tree
286  virginica  virginica   rda Training   tree
287  virginica  virginica   rda Training   tree
288  virginica  virginica   rda Training   tree
289  virginica  virginica   rda Training   tree
290  virginica  virginica   rda Training   tree
291  virginica  virginica   rda Training   tree
292  virginica  virginica   rda Training   tree
293  virginica  virginica   rda Training   tree
294  virginica  virginica   rda Training   tree
295  virginica  virginica   rda Training   tree
296  virginica  virginica   rda Training   tree
297  virginica  virginica   rda Training   tree
298  virginica  virginica   rda Training   tree
299  virginica  virginica   rda Training   tree
300  virginica  virginica   rda Training   tree
          setosa   versicolor    virginica        obs       pred model dataType
1   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
2   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
3   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
4   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
5   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
6   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
7   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
8   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
9   1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
10  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
11  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
12  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
13  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
14  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
15  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
16  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
17  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
18  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
19  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
20  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
21  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
22  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
23  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
24  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
25  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
26  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
27  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
28  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
29  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
30  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
31  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
32  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
33  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
34  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
35  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
36  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
37  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
38  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
39  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
40  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
41  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
42  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
43  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
44  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
45  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
46  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
47  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
48  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
49  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
50  1.000000e+00 0.000000e+00 0.000000e+00     setosa     setosa   knn Training
51  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
52  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
53  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
54  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
55  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
56  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
57  0.000000e+00 7.777778e-01 2.222222e-01 versicolor versicolor   knn Training
58  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
59  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
60  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
61  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
62  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
63  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
64  0.000000e+00 6.666667e-01 3.333333e-01 versicolor versicolor   knn Training
65  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
66  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
67  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
68  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
69  0.000000e+00 6.666667e-01 3.333333e-01 versicolor versicolor   knn Training
70  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
71  0.000000e+00 5.555556e-01 4.444444e-01 versicolor versicolor   knn Training
72  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
73  0.000000e+00 4.444444e-01 5.555556e-01 versicolor  virginica   knn Training
74  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
75  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
76  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
77  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
78  0.000000e+00 5.555556e-01 4.444444e-01 versicolor versicolor   knn Training
79  0.000000e+00 8.888889e-01 1.111111e-01 versicolor versicolor   knn Training
80  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
81  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
82  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
83  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
84  0.000000e+00 2.222222e-01 7.777778e-01 versicolor  virginica   knn Training
85  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
86  0.000000e+00 8.888889e-01 1.111111e-01 versicolor versicolor   knn Training
87  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
88  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
89  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
90  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
91  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
92  0.000000e+00 9.090909e-01 9.090909e-02 versicolor versicolor   knn Training
93  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
94  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
95  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
96  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
97  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
98  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
99  0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
100 0.000000e+00 1.000000e+00 0.000000e+00 versicolor versicolor   knn Training
101 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
102 0.000000e+00 1.111111e-01 8.888889e-01  virginica  virginica   knn Training
103 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
104 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
105 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
106 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
107 0.000000e+00 7.777778e-01 2.222222e-01  virginica versicolor   knn Training
108 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
109 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
110 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
111 0.000000e+00 1.111111e-01 8.888889e-01  virginica  virginica   knn Training
112 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
113 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
114 0.000000e+00 1.000000e-01 9.000000e-01  virginica  virginica   knn Training
115 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
116 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
117 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
118 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
119 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
120 0.000000e+00 3.000000e-01 7.000000e-01  virginica  virginica   knn Training
121 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
122 0.000000e+00 1.111111e-01 8.888889e-01  virginica  virginica   knn Training
123 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
124 0.000000e+00 2.222222e-01 7.777778e-01  virginica  virginica   knn Training
125 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
126 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
127 0.000000e+00 3.333333e-01 6.666667e-01  virginica  virginica   knn Training
128 0.000000e+00 4.000000e-01 6.000000e-01  virginica  virginica   knn Training
129 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
130 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
131 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
132 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
133 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
134 0.000000e+00 4.444444e-01 5.555556e-01  virginica  virginica   knn Training
135 0.000000e+00 2.222222e-01 7.777778e-01  virginica  virginica   knn Training
136 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
137 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
138 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
139 0.000000e+00 4.444444e-01 5.555556e-01  virginica  virginica   knn Training
140 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
141 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
142 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
143 0.000000e+00 1.111111e-01 8.888889e-01  virginica  virginica   knn Training
144 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
145 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
146 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
147 0.000000e+00 2.222222e-01 7.777778e-01  virginica  virginica   knn Training
148 0.000000e+00 1.111111e-01 8.888889e-01  virginica  virginica   knn Training
149 0.000000e+00 0.000000e+00 1.000000e+00  virginica  virginica   knn Training
150 0.000000e+00 2.222222e-01 7.777778e-01  virginica  virginica   knn Training
151 1.000000e+00 3.896358e-22 2.611168e-42     setosa     setosa   rda Training
152 1.000000e+00 7.217970e-18 5.042143e-37     setosa     setosa   rda Training
153 1.000000e+00 1.463849e-19 4.675932e-39     setosa     setosa   rda Training
154 1.000000e+00 1.268536e-16 3.566610e-35     setosa     setosa   rda Training
155 1.000000e+00 1.637387e-22 1.082605e-42     setosa     setosa   rda Training
156 1.000000e+00 3.883282e-21 4.566540e-40     setosa     setosa   rda Training
157 1.000000e+00 1.113469e-18 2.302608e-37     setosa     setosa   rda Training
158 1.000000e+00 3.877586e-20 1.074496e-39     setosa     setosa   rda Training
159 1.000000e+00 1.902813e-15 9.482936e-34     setosa     setosa   rda Training
160 1.000000e+00 1.111803e-18 2.724060e-38     setosa     setosa   rda Training
161 1.000000e+00 1.185277e-23 3.237084e-44     setosa     setosa   rda Training
162 1.000000e+00 1.621649e-18 1.833201e-37     setosa     setosa   rda Training
163 1.000000e+00 1.459225e-18 3.262506e-38     setosa     setosa   rda Training
164 1.000000e+00 1.117219e-19 1.316642e-39     setosa     setosa   rda Training
165 1.000000e+00 5.487399e-30 1.531265e-52     setosa     setosa   rda Training
166 1.000000e+00 1.261505e-27 2.268705e-48     setosa     setosa   rda Training
167 1.000000e+00 6.754338e-25 3.868271e-45     setosa     setosa   rda Training
168 1.000000e+00 4.223741e-21 1.224313e-40     setosa     setosa   rda Training
169 1.000000e+00 1.774911e-22 2.552153e-42     setosa     setosa   rda Training
170 1.000000e+00 2.593237e-22 5.792079e-42     setosa     setosa   rda Training
171 1.000000e+00 1.274639e-19 4.357774e-39     setosa     setosa   rda Training
172 1.000000e+00 1.465999e-20 1.987241e-39     setosa     setosa   rda Training
173 1.000000e+00 6.569280e-25 7.769177e-46     setosa     setosa   rda Training
174 1.000000e+00 8.912348e-15 9.178624e-32     setosa     setosa   rda Training
175 1.000000e+00 1.070702e-15 1.167516e-33     setosa     setosa   rda Training
176 1.000000e+00 2.497339e-16 5.710269e-35     setosa     setosa   rda Training
177 1.000000e+00 3.967732e-17 4.378624e-35     setosa     setosa   rda Training
178 1.000000e+00 1.548165e-21 1.595360e-41     setosa     setosa   rda Training
179 1.000000e+00 9.271847e-22 6.297955e-42     setosa     setosa   rda Training
180 1.000000e+00 9.665144e-17 2.977974e-35     setosa     setosa   rda Training
181 1.000000e+00 2.299936e-16 7.182666e-35     setosa     setosa   rda Training
182 1.000000e+00 1.975404e-19 2.788334e-38     setosa     setosa   rda Training
183 1.000000e+00 7.100041e-27 2.216408e-48     setosa     setosa   rda Training
184 1.000000e+00 1.610295e-28 2.743783e-50     setosa     setosa   rda Training
185 1.000000e+00 1.205219e-17 1.277245e-36     setosa     setosa   rda Training
186 1.000000e+00 1.597186e-21 9.033772e-42     setosa     setosa   rda Training
187 1.000000e+00 1.939869e-24 1.662808e-45     setosa     setosa   rda Training
188 1.000000e+00 3.310234e-23 7.004971e-44     setosa     setosa   rda Training
189 1.000000e+00 4.190242e-17 6.991441e-36     setosa     setosa   rda Training
190 1.000000e+00 1.769359e-20 3.541694e-40     setosa     setosa   rda Training
191 1.000000e+00 1.063014e-21 2.003866e-41     setosa     setosa   rda Training
192 1.000000e+00 2.174217e-11 1.213781e-28     setosa     setosa   rda Training
193 1.000000e+00 1.540753e-18 1.305719e-37     setosa     setosa   rda Training
194 1.000000e+00 8.940589e-16 1.315511e-32     setosa     setosa   rda Training
195 1.000000e+00 1.616206e-17 3.205992e-35     setosa     setosa   rda Training
196 1.000000e+00 1.714743e-16 7.172435e-35     setosa     setosa   rda Training
197 1.000000e+00 2.083089e-22 2.289783e-42     setosa     setosa   rda Training
198 1.000000e+00 2.793482e-18 2.629539e-37     setosa     setosa   rda Training
199 1.000000e+00 2.597560e-23 9.820820e-44     setosa     setosa   rda Training
200 1.000000e+00 2.322258e-20 4.241757e-40     setosa     setosa   rda Training
201 1.969732e-18 9.998894e-01 1.105878e-04 versicolor versicolor   rda Training
202 1.242878e-19 9.992575e-01 7.425297e-04 versicolor versicolor   rda Training
203 2.088263e-22 9.958069e-01 4.193053e-03 versicolor versicolor   rda Training
204 2.198898e-22 9.996423e-01 3.576502e-04 versicolor versicolor   rda Training
205 4.213678e-23 9.955903e-01 4.409655e-03 versicolor versicolor   rda Training
206 8.127287e-23 9.985020e-01 1.497982e-03 versicolor versicolor   rda Training
207 3.549900e-22 9.858346e-01 1.416542e-02 versicolor versicolor   rda Training
208 5.007065e-14 9.999999e-01 1.119811e-07 versicolor versicolor   rda Training
209 5.683334e-20 9.998781e-01 1.218649e-04 versicolor versicolor   rda Training
210 1.241039e-20 9.995027e-01 4.973085e-04 versicolor versicolor   rda Training
211 1.956628e-18 9.999986e-01 1.420841e-06 versicolor versicolor   rda Training
212 5.968900e-20 9.992294e-01 7.705716e-04 versicolor versicolor   rda Training
213 2.716128e-18 9.999988e-01 1.220169e-06 versicolor versicolor   rda Training
214 1.184445e-23 9.943267e-01 5.673286e-03 versicolor versicolor   rda Training
215 5.574931e-14 9.999984e-01 1.649215e-06 versicolor versicolor   rda Training
216 2.369511e-17 9.999573e-01 4.268212e-05 versicolor versicolor   rda Training
217 8.429328e-24 9.806471e-01 1.935289e-02 versicolor versicolor   rda Training
218 2.505072e-16 9.999991e-01 9.151716e-07 versicolor versicolor   rda Training
219 1.670352e-27 9.595735e-01 4.042653e-02 versicolor versicolor   rda Training
220 1.341503e-17 9.999967e-01 3.296105e-06 versicolor versicolor   rda Training
221 7.408118e-28 2.532282e-01 7.467718e-01 versicolor  virginica   rda Training
222 9.399292e-17 9.999907e-01 9.345291e-06 versicolor versicolor   rda Training
223 7.674672e-29 8.155328e-01 1.844672e-01 versicolor versicolor   rda Training
224 2.683018e-22 9.995723e-01 4.277469e-04 versicolor versicolor   rda Training
225 7.813875e-18 9.999758e-01 2.421458e-05 versicolor versicolor   rda Training
226 2.073207e-18 9.999171e-01 8.290530e-05 versicolor versicolor   rda Training
227 6.357538e-23 9.982541e-01 1.745936e-03 versicolor versicolor   rda Training
228 5.639473e-27 6.892131e-01 3.107869e-01 versicolor versicolor   rda Training
229 3.773528e-23 9.925169e-01 7.483138e-03 versicolor versicolor   rda Training
230 9.555338e-12 1.000000e+00 1.910624e-08 versicolor versicolor   rda Training
231 1.022109e-17 9.999970e-01 3.007748e-06 versicolor versicolor   rda Training
232 9.648075e-16 9.999997e-01 3.266704e-07 versicolor versicolor   rda Training
233 1.616405e-16 9.999962e-01 3.778441e-06 versicolor versicolor   rda Training
234 4.241952e-32 1.433919e-01 8.566081e-01 versicolor  virginica   rda Training
235 1.724514e-24 9.635576e-01 3.644242e-02 versicolor versicolor   rda Training
236 1.344746e-20 9.940401e-01 5.959931e-03 versicolor versicolor   rda Training
237 3.304868e-21 9.982223e-01 1.777672e-03 versicolor versicolor   rda Training
238 2.034571e-23 9.994557e-01 5.443096e-04 versicolor versicolor   rda Training
239 5.806986e-18 9.999486e-01 5.137101e-05 versicolor versicolor   rda Training
240 5.981190e-21 9.998183e-01 1.816870e-04 versicolor versicolor   rda Training
241 5.878614e-23 9.993856e-01 6.144200e-04 versicolor versicolor   rda Training
242 5.399006e-22 9.980934e-01 1.906591e-03 versicolor versicolor   rda Training
243 3.559507e-18 9.999887e-01 1.128570e-05 versicolor versicolor   rda Training
244 2.104146e-14 9.999999e-01 1.135016e-07 versicolor versicolor   rda Training
245 4.700877e-21 9.996980e-01 3.020226e-04 versicolor versicolor   rda Training
246 1.584328e-17 9.999817e-01 1.826327e-05 versicolor versicolor   rda Training
247 2.802293e-19 9.998892e-01 1.108315e-04 versicolor versicolor   rda Training
248 1.626918e-18 9.999536e-01 4.640488e-05 versicolor versicolor   rda Training
249 7.638378e-11 1.000000e+00 1.867332e-08 versicolor versicolor   rda Training
250 4.679301e-19 9.999269e-01 7.305863e-05 versicolor versicolor   rda Training
251 7.503075e-52 7.127303e-09 1.000000e+00  virginica  virginica   rda Training
252 5.213802e-38 1.078251e-03 9.989217e-01  virginica  virginica   rda Training
253 1.231264e-42 2.592826e-05 9.999741e-01  virginica  virginica   rda Training
254 1.537499e-38 1.068139e-03 9.989319e-01  virginica  virginica   rda Training
255 6.242501e-46 1.812963e-06 9.999982e-01  virginica  virginica   rda Training
256 4.209281e-49 6.656263e-07 9.999993e-01  virginica  virginica   rda Training
257 3.797837e-33 4.862025e-02 9.513797e-01  virginica  virginica   rda Training
258 1.352176e-42 1.395463e-04 9.998605e-01  virginica  virginica   rda Training
259 1.323390e-42 2.235313e-04 9.997765e-01  virginica  virginica   rda Training
260 3.453358e-46 1.727277e-07 9.999998e-01  virginica  virginica   rda Training
261 5.452660e-32 1.305353e-02 9.869465e-01  virginica  virginica   rda Training
262 1.182560e-37 1.673875e-03 9.983261e-01  virginica  virginica   rda Training
263 5.204321e-39 2.006352e-04 9.997994e-01  virginica  virginica   rda Training
264 1.269953e-40 1.948672e-04 9.998051e-01  virginica  virginica   rda Training
265 1.685361e-45 1.000455e-06 9.999990e-01  virginica  virginica   rda Training
266 5.141640e-40 2.605493e-05 9.999739e-01  virginica  virginica   rda Training
267 1.909820e-35 6.083553e-03 9.939164e-01  virginica  virginica   rda Training
268 1.207799e-44 1.503799e-06 9.999985e-01  virginica  virginica   rda Training
269 3.181265e-59 1.317279e-09 1.000000e+00  virginica  virginica   rda Training
270 1.598511e-33 2.207990e-01 7.792010e-01  virginica  virginica   rda Training
271 1.119461e-42 6.451865e-06 9.999935e-01  virginica  virginica   rda Training
272 3.038170e-37 8.272676e-04 9.991727e-01  virginica  virginica   rda Training
273 6.032879e-50 9.509838e-07 9.999990e-01  virginica  virginica   rda Training
274 1.951261e-31 9.711942e-02 9.028806e-01  virginica  virginica   rda Training
275 1.956408e-39 8.836845e-05 9.999116e-01  virginica  virginica   rda Training
276 1.109337e-36 2.679310e-03 9.973207e-01  virginica  virginica   rda Training
277 7.841997e-30 1.883675e-01 8.116325e-01  virginica  virginica   rda Training
278 7.964690e-30 1.342431e-01 8.657569e-01  virginica  virginica   rda Training
279 6.190641e-44 1.303681e-05 9.999870e-01  virginica  virginica   rda Training
280 1.406448e-32 1.036823e-01 8.963177e-01  virginica  virginica   rda Training
281 4.108129e-42 1.442338e-04 9.998558e-01  virginica  virginica   rda Training
282 1.555697e-36 5.198047e-04 9.994802e-01  virginica  virginica   rda Training
283 1.320330e-45 3.014091e-06 9.999970e-01  virginica  virginica   rda Training
284 1.283891e-28 7.293881e-01 2.706119e-01  virginica versicolor   rda Training
285 1.926560e-35 6.602253e-02 9.339775e-01  virginica  virginica   rda Training
286 1.271083e-45 2.152818e-06 9.999978e-01  virginica  virginica   rda Training
287 3.038963e-44 8.881859e-07 9.999991e-01  virginica  virginica   rda Training
288 4.605973e-35 6.165648e-03 9.938344e-01  virginica  virginica   rda Training
289 4.538634e-29 1.925262e-01 8.074738e-01  virginica  virginica   rda Training
290 2.140232e-36 8.290895e-04 9.991709e-01  virginica  virginica   rda Training
291 6.570902e-45 1.180810e-06 9.999988e-01  virginica  virginica   rda Training
292 6.202588e-36 4.276398e-04 9.995724e-01  virginica  virginica   rda Training
293 5.213802e-38 1.078251e-03 9.989217e-01  virginica  virginica   rda Training
294 1.073945e-45 1.028519e-06 9.999990e-01  virginica  virginica   rda Training
295 4.048249e-46 2.524984e-07 9.999997e-01  virginica  virginica   rda Training
296 4.970070e-39 7.473361e-05 9.999253e-01  virginica  virginica   rda Training
297 4.616611e-36 5.898784e-03 9.941012e-01  virginica  virginica   rda Training
298 5.548962e-35 3.145874e-03 9.968541e-01  virginica  virginica   rda Training
299 1.613687e-40 1.257468e-05 9.999874e-01  virginica  virginica   rda Training
300 2.858012e-33 1.754229e-02 9.824577e-01  virginica  virginica   rda Training
    object
1      knn
2      knn
3      knn
4      knn
5      knn
6      knn
7      knn
8      knn
9      knn
10     knn
11     knn
12     knn
13     knn
14     knn
15     knn
16     knn
17     knn
18     knn
19     knn
20     knn
21     knn
22     knn
23     knn
24     knn
25     knn
26     knn
27     knn
28     knn
29     knn
30     knn
31     knn
32     knn
33     knn
34     knn
35     knn
36     knn
37     knn
38     knn
39     knn
40     knn
41     knn
42     knn
43     knn
44     knn
45     knn
46     knn
47     knn
48     knn
49     knn
50     knn
51     knn
52     knn
53     knn
54     knn
55     knn
56     knn
57     knn
58     knn
59     knn
60     knn
61     knn
62     knn
63     knn
64     knn
65     knn
66     knn
67     knn
68     knn
69     knn
70     knn
71     knn
72     knn
73     knn
74     knn
75     knn
76     knn
77     knn
78     knn
79     knn
80     knn
81     knn
82     knn
83     knn
84     knn
85     knn
86     knn
87     knn
88     knn
89     knn
90     knn
91     knn
92     knn
93     knn
94     knn
95     knn
96     knn
97     knn
98     knn
99     knn
100    knn
101    knn
102    knn
103    knn
104    knn
105    knn
106    knn
107    knn
108    knn
109    knn
110    knn
111    knn
112    knn
113    knn
114    knn
115    knn
116    knn
117    knn
118    knn
119    knn
120    knn
121    knn
122    knn
123    knn
124    knn
125    knn
126    knn
127    knn
128    knn
129    knn
130    knn
131    knn
132    knn
133    knn
134    knn
135    knn
136    knn
137    knn
138    knn
139    knn
140    knn
141    knn
142    knn
143    knn
144    knn
145    knn
146    knn
147    knn
148    knn
149    knn
150    knn
151   tree
152   tree
153   tree
154   tree
155   tree
156   tree
157   tree
158   tree
159   tree
160   tree
161   tree
162   tree
163   tree
164   tree
165   tree
166   tree
167   tree
168   tree
169   tree
170   tree
171   tree
172   tree
173   tree
174   tree
175   tree
176   tree
177   tree
178   tree
179   tree
180   tree
181   tree
182   tree
183   tree
184   tree
185   tree
186   tree
187   tree
188   tree
189   tree
190   tree
191   tree
192   tree
193   tree
194   tree
195   tree
196   tree
197   tree
198   tree
199   tree
200   tree
201   tree
202   tree
203   tree
204   tree
205   tree
206   tree
207   tree
208   tree
209   tree
210   tree
211   tree
212   tree
213   tree
214   tree
215   tree
216   tree
217   tree
218   tree
219   tree
220   tree
221   tree
222   tree
223   tree
224   tree
225   tree
226   tree
227   tree
228   tree
229   tree
230   tree
231   tree
232   tree
233   tree
234   tree
235   tree
236   tree
237   tree
238   tree
239   tree
240   tree
241   tree
242   tree
243   tree
244   tree
245   tree
246   tree
247   tree
248   tree
249   tree
250   tree
251   tree
252   tree
253   tree
254   tree
255   tree
256   tree
257   tree
258   tree
259   tree
260   tree
261   tree
262   tree
263   tree
264   tree
265   tree
266   tree
267   tree
268   tree
269   tree
270   tree
271   tree
272   tree
273   tree
274   tree
275   tree
276   tree
277   tree
278   tree
279   tree
280   tree
281   tree
282   tree
283   tree
284   tree
285   tree
286   tree
287   tree
288   tree
289   tree
290   tree
291   tree
292   tree
293   tree
294   tree
295   tree
296   tree
297   tree
298   tree
299   tree
300   tree

caret documentation built on May 2, 2019, 5:47 p.m.