Modifier and Type | Field and Description |
---|---|
Frame |
_adaptedFrame |
int[] |
_catOffsets |
int |
_cats |
int |
_foldId |
int |
_nfolds |
double[] |
_normMul |
double[] |
_normSub |
int |
_nums |
int |
_responses |
boolean |
_standardize |
Constructor and Description |
---|
FrameTask.DataInfo(Frame fr,
int nResponses,
boolean standardize) |
FrameTask.DataInfo(Frame fr,
int hasResponses,
double[] normSub,
double[] normMul) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
coefNames() |
int |
fullN() |
FrameTask.DataInfo |
getFold(int foldId,
int nfolds) |
int |
largestCat() |
int |
numStart() |
static Frame |
prepareFrame(Frame source,
Vec response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols)
Prepare a Frame (with a single response) to be processed by the FrameTask
1) Place response at the end
2) (Optionally) Remove rows with constant values or with >20% NaNs
3) Possibly turn integer categoricals into enums
|
java.lang.String |
toString() |
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public Frame _adaptedFrame
public final int _responses
public final boolean _standardize
public final int _nums
public final int _cats
public final int[] _catOffsets
public final double[] _normMul
public final double[] _normSub
public final int _foldId
public final int _nfolds
public FrameTask.DataInfo(Frame fr, int hasResponses, double[] normSub, double[] normMul)
public FrameTask.DataInfo(Frame fr, int nResponses, boolean standardize)
public static Frame prepareFrame(Frame source, Vec response, int[] ignored_cols, boolean toEnum, boolean dropConstantCols)
source
- A frame to be expanded and sanity checkedresponse
- (should be part of source)toEnum
- Whether or not to turn categoricals into enumsdropConstantCols
- Whether or not to drop constant columnspublic java.lang.String toString()
toString
in class java.lang.Object
public FrameTask.DataInfo getFold(int foldId, int nfolds)
public final int fullN()
public final int largestCat()
public final int numStart()
public final java.lang.String[] coefNames()