module Make: functor (
X
:
Oc45.S
) ->
S
with type c45_data = X.data
and type c45_category = X.category
and type c45_trainSet = X.trainSet
type
c45_data
Oc45.S.data
type
c45_category
type
c45_trainSet
Oc45.S.trainSet
type
randomForest
val classify : randomForest ->
c45_data -> c45_category
Classifies a new data vector, relying on the informations from the
given random forest (generated by
ORandForest.S.genRandomForest
), yielding a
category.
val genRandomForest : int -> c45_trainSet -> randomForest
genRandomForest nbTrees trainSet
generates a random forest of
nbTrees
trees, based on trainSet
.