Class SparkDecisionTreeClassificationOperator.Model
java.lang.Object
org.apache.wayang.spark.operators.ml.SparkDecisionTreeClassificationOperator.Model
- All Implemented Interfaces:
Serializable,DecisionTreeClassificationModel,Model,SparkMLModel<double[],Integer>
- Enclosing class:
- SparkDecisionTreeClassificationOperator
public static class SparkDecisionTreeClassificationOperator.Model
extends Object
implements DecisionTreeClassificationModel, SparkMLModel<double[],Integer>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModel(org.apache.spark.ml.classification.DecisionTreeClassificationModel model) -
Method Summary
-
Constructor Details
-
Model
public Model(org.apache.spark.ml.classification.DecisionTreeClassificationModel model)
-
-
Method Details
-
transform
public org.apache.spark.api.java.JavaRDD<Tuple2<double[],Integer>> transform(org.apache.spark.api.java.JavaRDD<double[]> input) - Specified by:
transformin interfaceSparkMLModel<double[],Integer>
-
predict
public org.apache.spark.api.java.JavaRDD<Integer> predict(org.apache.spark.api.java.JavaRDD<double[]> input) - Specified by:
predictin interfaceSparkMLModel<double[],Integer>
-
getDepth
public int getDepth()- Specified by:
getDepthin interfaceDecisionTreeClassificationModel
-