k nearest neighbour (kNN) for regression
kNN can be modified for regression problems by replacing the previous equation with the following equation:
The predicted biological value of the given compound is the average of the biological values of its k nearest neighbours. Unlike kNN that is used for classification problems, k need not be an odd number in this case.
Share This