Closed Leprechault closed 8 months ago
Hi, sorry for a long reply time.
Unfortunately, the forester package doesn't offer such feature. The tool however has other methods of dealing with imbalanced classes, such as train-test-validation splits which keep the original data distribution. Additionally, we enable the evaluation with metrics designed for imbalanced classes, such as balanced-accuracy.
Thanks for your answer @HubertR21. Best wishes!!
I'd like to know if you have any way to control train weights in the function of unbalanced sample size. In my case I have a dataset of 2 areas "a" and "b"(x_categorical_1), area 1 size 4 values (is small just for example), area 2 with 3 values. I don't like to make several bootstraps with size 3, but create some weights in the model considering the sample size by area. Is this possible in forester::train?
In my example:
Thanks in advance!!