Notations
Last updated
Last updated
The training set is denoted by X.
It has N training examples.
Each example is denoted by where is the feature set of the training example and is the corresponding label.
The training set is denoted as
h(x) is the hypothesis that assigns a label r to x. For example, if we have a task of classifying cars as family cars/not family cars, based on two features , based on the below feature space, we could hypothesize that:
This hypothesis, however, may or may not be correct.
The error of the hypothesis h on X is given by:
or , basically the number of misclassified examples.
Say we know the correct hypothesis and we compare our current hypothesis with the correct hypothesis:
The current hypothesis labels everything inside the orange box as + and everything outside as -.
False positives are examples that are mistakenly labeled by our current hypothesis as positive. False negatives are examples that are mistakenly labeled by our current hypothesis as negative.
Based on the task at hand, we must focus on reducing either false positives or false negatives.