public class RandomForest extends Object
Modifier and Type | Method and Description |
---|---|
static RandomForestModel |
predict(ModelArg modelArg,
org.apache.spark.sql.Dataset dataset) |
static RandomForestModel |
predict(RandomForestModel model)
Restores a random forest given the user-defined model arugments.
|
static RandomForestModel |
train(ModelArg modelArg)
Trains a random forest given the user-defined model arugments.
|
public static RandomForestModel train(ModelArg modelArg)
modelArg
- User-defined model arguments.public static RandomForestModel predict(RandomForestModel model)
model
- User-defined model arguments.public static RandomForestModel predict(ModelArg modelArg, org.apache.spark.sql.Dataset dataset)
Copyright © 2018. All rights reserved.