The help page for randomforest::randomforest()
says:
"classwt - Priors of the classes. Need not add up to one. Ignored for regression."
Could setting the classwt
parameter help when you have heavy unbalanced data, ie. priors of classes differs strongly ?
How should I set classwt
when training a model on a dataset with 3 classes with a vector of priors equal to (p1,p2,p3), and in test set priors are (q1,q2,q3)?