powered by
Get a prior via class proportions.
getPriors(Cls)
[1:k] Numeric vector with prior probability for each class.
[1:n] numerical vector with n numbers defining the classification. It has k unique numbers representing the arbitrary labels of the classification.
Michael Thrun
if(requireNamespace("FCPS")){ data(Hepta) Data=Hepta$Data Cls=Hepta$Cls Priors=getPriors(Cls) }
Run the code above in your browser using DataLab