Binary classifier to choose whether to display white or black text on a given background colour. The feature set is the three colour channels for the background, RGB. This can be used to increase accessibility of a website by automatically adapting text to have the most visibility.
..
..
Predict carbon emission levels using electricity used as a feature.
3
There is no training.
Usually, training classifier involves processing the training set in some way.
In a nearest-neighbour classifier, we use the training set raw.
Method on slides:
k elements of training set that are nearest to new example are identified
number of these in each class C1,C2,… are counted, call these n1,n2,…
probability of new example being in each class is then calculated as follows:
p(C1)=kn1p(C2)=kn2
and so on for other classes.