October 2017
Beginner to intermediate
270 pages
7h
English
The accuracy calculates either the fraction or the count of correct predictions for a model. In multi-label classification, the function returns the subset's accuracy.
If the entire set of predicted labels for a sample strictly matches the true set of labels, then the subset's accuracy is 1.0; otherwise, it is 0.0. If ŷi is the predicted value of the ith sample and yi is the corresponding true value, then the fraction of correct predictions over n samples is defined as follows:

Read now
Unlock full access