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.