October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to measure the prediction performance of the trained neural network:
> net.predict = compute(network, testset[-5])$net.result
> net.prediction = c("versicolor", "virginica", "setosa")[apply(net.predict, 1, which.max)]
> predict.table = table(testset$Species, net.prediction)> predict.tableOutput predictionsetosa versicolor virginicasetosa 20 0 0 versicolor 0 19 1 virginica 0 2 16
Read now
Unlock full access