public class ANOVATest
extends Object
See Wikipedia for more information on ANOVA test.
Constructor and Description |
---|
ANOVATest() |
public static Dataset<Row> test(Dataset<Row> dataset, String featuresCol, String labelCol)
dataset
- DataFrame of categorical labels and continuous features.featuresCol
- Name of features column in dataset, of type Vector
(VectorUDT
)labelCol
- Name of label column in dataset, of any numerical typepValues: Vector
- degreesOfFreedom: Array[Long]
- fValues: Vector
Each of these fields has one value per feature.public static Dataset<Row> test(Dataset<Row> dataset, String featuresCol, String labelCol, boolean flatten)
dataset
- DataFrame of categorical labels and continuous features.featuresCol
- Name of features column in dataset, of type Vector
(VectorUDT
)labelCol
- Name of label column in dataset, of any numerical typeflatten
- If false, the returned DataFrame contains only a single Row, otherwise, one
row per feature.