Fitting the model with the nnet library, the overall
accuracy raises to 68%, whereas it classifies mostly Android phones
better than iPhones (86% vs. 55%). As in the case of heuristic
optimization you may end up finding local optima, it is useful to run
the model several times and look for the best model. As shown in the
histogram below, running the model 100 times you see that the best ones
reach about 70% accuracy.
Overall accuracy = 0.681
Confusion matrix
Predicted (cv)
Actual Android iPhone
Android 0.863 0.137
iPhone 0.448 0.552
