Stores a random forest generated by
genRandomForest nbTrees trainSet generates a random forest of
nbTrees trees, based on
ncores > 1 is given, the random forest will be built in parallel
Classifies a new data vector, relying on the informations from the given random forest (generated by
genRandomForest), yielding a category.
classify but gives access to the percentage of votes for each category. After calibration of your classifier (e.g. using Platt/sigmoid scaling or isotonic regression), those percentages can be converted to probabilities. No calibration method is included in the library currently.
val save_to_file : string -> randomForest -> unit
save_to_file output model saves the random forest
model into the file
val restore_from_file : string -> randomForest
restore_from_file input restores the random forest that was previously saved in file