I want to implement my own customized loss function for a random forest regression in R. I found this Random Forests with a Customized Loss Function on how to do it in python, however not in R.
I would think that maybe the mlr3 package lets you customize loss functions in any way? I only found how to customize performance measures for assessing performance, and not for training. Any help or hints are appreciated!