|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.mllib.util.DataValidators
public class DataValidators
:: DeveloperApi :: A collection of methods used to validate data before applying ML algorithms.
Constructor Summary | |
---|---|
DataValidators()
|
Method Summary | |
---|---|
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}. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.spark.Logging |
---|
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning |
Constructor Detail |
---|
public DataValidators()
Method Detail |
---|
public static scala.Function1<RDD<LabeledPoint>,Object> binaryLabelValidator()
public static scala.Function1<RDD<LabeledPoint>,Object> multiLabelValidator(int k)
k
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |