public class DataValidators
extends Object
Constructor and Description |
---|
DataValidators() |
Modifier and Type | Method and Description |
---|---|
static scala.Function1<RDD<LabeledPoint>,Object> |
binaryLabelValidator()
Function to check if labels used for classification are either zero or one.
|
static scala.Function1<RDD<LabeledPoint>,Object> |
multiLabelValidator(int k)
Function to check if labels used for k class multi-label classification are
in the range of {0, 1, ..., k - 1}.
|
public static scala.Function1<RDD<LabeledPoint>,Object> binaryLabelValidator()
public static scala.Function1<RDD<LabeledPoint>,Object> multiLabelValidator(int k)
k
- (undocumented)