add classifier FastRandomForests
This commit is contained in:
parent
953cc0bac5
commit
2cb2ccd574
1 changed files with 15 additions and 0 deletions
|
@ -62,6 +62,7 @@
|
|||
"
|
||||
(:use [clj-ml utils data kernel-functions])
|
||||
(:import (java.util Date Random)
|
||||
(hr.irb.fastRandomForest FastRandomForest)
|
||||
(weka.core Instance Instances)
|
||||
(weka.classifiers.trees J48 RandomForest M5P)
|
||||
(weka.classifiers.meta LogitBoost AdditiveRegression RotationForest)
|
||||
|
@ -191,6 +192,16 @@
|
|||
:random-seed "-S"
|
||||
:depth "-depth"}))))
|
||||
|
||||
(defmethod make-classifier-options [:decision-tree :fast-random-forest]
|
||||
([kind algorithm m]
|
||||
(->>
|
||||
(check-options m {:debug "-D"})
|
||||
(check-option-values m
|
||||
{:num-trees-in-forest "-I"
|
||||
:num-features-to-consider "-K"
|
||||
:random-seed "-S"
|
||||
:depth "-depth"}))))
|
||||
|
||||
(defmethod make-classifier-options [:decision-tree :rotation-forest]
|
||||
([kind algorithm m]
|
||||
(->>
|
||||
|
@ -435,6 +446,10 @@
|
|||
([kind algorithm & options]
|
||||
(make-classifier-with kind algorithm RandomForest options)))
|
||||
|
||||
(defmethod make-classifier [:decision-tree :fast-random-forest]
|
||||
([kind algorithm & options]
|
||||
(make-classifier-with kind algorithm FastRandomForest options)))
|
||||
|
||||
(defmethod make-classifier [:decision-tree :rotation-forest]
|
||||
([kind algorithm & options]
|
||||
(make-classifier-with kind algorithm RotationForest options)))
|
||||
|
|
Loading…
Reference in a new issue