alexkychen / assignPOP

Population Assignment using Genetic, Non-genetic or Integrated Data in a Machine-learning Framework. Methods in Ecology and Evolution. 2018;9:439–446.
http://alexkychen.github.io/assignPOP/
GNU General Public License v3.0
17 stars 4 forks source link

On random forest function #6

Open apfuentes opened 5 years ago

apfuentes commented 5 years ago

Hi Alex, Thanks for developing this package!

When using the random forest function the parameter "y" needs to be set to a factor for classification, other wise regression is performed. I was wondering if in the R script of assign.MC.R the input "y" is set to a factor. After a quick look at this function, it does not seem to be but maybe I am wrong, I just wanted to confirm.

Also, is there an easy way to obtain MSE (mean standard error) and MDA (mean decrease in accuracy) from the random forest simulations? I am asking because from them we can determine the optimal number of trees (ntree).

Thanks

alexkychen commented 5 years ago

Hi, Sorry for the late response. Thanks for bringing that up. I will take a look at this issue, but it may take a while. If you happen to know how to modify the script or have already solved the issue by yourself, please let me know. I am will be more than happy to add a contributor.

Thanks!