public class RWrapperUtils
extends Object
Constructor and Description |
---|
RWrapperUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDataColumns(RFormula rFormula,
Dataset<?> data)
DataFrame column check.
|
static scala.Tuple2<String[],String[]> |
getFeaturesAndLabels(RFormulaModel rFormulaModel,
Dataset<?> data)
Get the feature names and original labels from the schema
of DataFrame transformed by RFormulaModel.
|
public static void checkDataColumns(RFormula rFormula, Dataset<?> data)
rFormula
- RFormula instancedata
- Input datasetpublic static scala.Tuple2<String[],String[]> getFeaturesAndLabels(RFormulaModel rFormulaModel, Dataset<?> data)
rFormulaModel
- The RFormulaModel instance.data
- Input dataset.