knnSURF.balanced | R Documentation |
Theoretical value for the number of expected neighbors for SURF or multiSURF (fixed or adaptive radius) neighborhoods, but adjusted for imbalanced data. We use our theoretical formula with twice the size of the minority class as the input sample size.
knnSURF.balanced(class.vec, sd.frac = 0.5)
class.vec |
vector of class labels to determine the minimum class size. |
sd.frac |
fraction of the standard deviation from the mean of all pairwise distances, dead-band. The default value used by the SURF and multiSURF algorithms is 1/2. |
knn Theoretical number of neighbors.
k.surf.bal <- knnSURF.balanced(class.vec, .5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.