October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to predict labels based on the trained neural network:
> iris.predict = predict(iris.nn, testset, type="class")
> nn.table = table(testset$Species, iris.predict)iris.predict setosa versicolor virginicasetosa 17 0 0 versicolor 0 14 0 virginica 0 1 14
> confusionMatrix(nn.table)Output:Confusion Matrix and Statisticsiris.predictsetosa versicolor virginicasetosa 17 0 0 versicolor 0 14 0 virginica 0 1 14Overall StatisticsAccuracy : 0.9782609 95% CI : (0.8847282, ...
Read now
Unlock full access