Class RandomForestClassifier
java.lang.Object
org.neo4j.gds.ml.models.randomforest.RandomForestClassifier
- All Implemented Interfaces:
Classifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.neo4j.gds.ml.models.Classifier
Classifier.ClassifierData -
Constructor Summary
ConstructorsConstructorDescriptionRandomForestClassifier(List<DecisionTreePredictor<Integer>> decisionTrees, int numberOfClasses, int featureDimension) -
Method Summary
Modifier and TypeMethodDescriptiondata()double[]predictProbabilities(double[] features) org.neo4j.gds.ml.core.tensor.MatrixpredictProbabilities(org.neo4j.gds.ml.core.batch.Batch batch, Features features) static org.neo4j.gds.core.utils.mem.MemoryRangeruntimeOverheadMemoryEstimation(int numberOfClasses) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.neo4j.gds.ml.models.Classifier
numberOfClasses
-
Constructor Details
-
RandomForestClassifier
public RandomForestClassifier(List<DecisionTreePredictor<Integer>> decisionTrees, int numberOfClasses, int featureDimension) -
RandomForestClassifier
-
-
Method Details
-
runtimeOverheadMemoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryRange runtimeOverheadMemoryEstimation(int numberOfClasses) -
data
- Specified by:
datain interfaceClassifier
-
predictProbabilities
public double[] predictProbabilities(double[] features) - Specified by:
predictProbabilitiesin interfaceClassifier
-
predictProbabilities
public org.neo4j.gds.ml.core.tensor.Matrix predictProbabilities(org.neo4j.gds.ml.core.batch.Batch batch, Features features) - Specified by:
predictProbabilitiesin interfaceClassifier
-