public class FValueTest
extends Object
Constructor and Description |
---|
FValueTest() |
public static Dataset<Row> test(Dataset<Row> dataset, String featuresCol, String labelCol)
dataset
- DataFrame of continuous 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 continuous 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.