In case of classification, the values y take on only a small number of discrete values.
Difference between classification and regression
Classification has only a small number of discrete values. However, regression can have continuous values.
Given x(i), the corresponding target value y(i)is referred to as the label for the training example. (Label represent some category)
Spam Detection
Salmon/Sea-Bass classification
Decision Boundary
Suppose that there exist two classes C1 and C2
A classifier assigns a new data x into C1 only if x∈R1.
(R1 is the decision region for C1)
A classification function
h(x)=k if x∈Rk
What can we do using classification function?
The out put of classification function is the class that containing input value.
Decision boundaries are boundaries between decision regions
(In multi-dimensional, decision boundaries are surface)
Discriminant Function
x∈Ck if ∀j∈I,fk(x)>fj(x)
What is the purpose of the discriminant Function?
The value of the discriminant function can be used as a criterion to determine which class it belongs to.
Example
fk(x)=P(Ck∣x)
Procedure
Define Discriminant function
By using discriminant functions, we can define classification function.
The classifier is defined by h(x)=argmaxkfk(x) (h : Classification function)
💡
Even if you compose a discriminant function with any monotonically increasing function, the resulting function can still be used as a classification function.
So, what is the discriminant function in supervised learning?
The discriminant function can take many forms depending on the specific algorithm or model being used.
In probabilistic model, the discriminant function can be represented as a p(y∣x,θ).
However, in some non-probabilistic models, such as support vector machines the discriminant function takes a different form and is not directly related to a posterior probability distribution.