classWeights | R Documentation |
Calculates class weights to be used for parameter optimisation and
classification such as svmOptimisation
or
svmClassification
- see the pRoloc tutorial
vignette for an example. The weights are calculated for all
non-unknown classes the inverse of the number of
observations.
classWeights(object, fcol = "markers")
object |
An instance of class |
fcol |
The name of the features to be weighted |
A table
of class weights
Laurent Gatto
library("pRolocdata")
data(hyperLOPIT2015)
classWeights(hyperLOPIT2015)
data(dunkley2006)
classWeights(dunkley2006)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.