Modifier and Type | Field and Description |
---|---|
Frame |
_adaptedFrame |
int[] |
_catOffsets |
int |
_cats |
int |
_foldId |
int |
_nfolds |
double[] |
_normMul |
double[] |
_normRespMul |
double[] |
_normRespSub |
double[] |
_normSub |
int |
_nums |
int |
_responses |
boolean |
_standardize |
boolean |
_standardize_response |
boolean |
_useAllFactorLevels |
Constructor and Description |
---|
FrameTask.DataInfo(Frame fr,
int nResponses,
boolean useAllFactors,
boolean standardize) |
FrameTask.DataInfo(Frame fr,
int nResponses,
boolean useAllFactorLevels,
boolean standardize,
boolean standardize_response) |
FrameTask.DataInfo(Frame fr,
int hasResponses,
boolean useAllFactorLvls,
double[] normSub,
double[] normMul) |
FrameTask.DataInfo(Frame fr,
int hasResponses,
boolean useAllFactorLvls,
double[] normSub,
double[] normMul,
double[] normRespSub,
double[] normRespMul) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
coefNames() |
FrameTask.DataInfo |
deep_clone() |
FrameTask.DataInfo |
filterExpandedColumns(int[] cols) |
int |
fullN() |
FrameTask.DataInfo |
getFold(int foldId,
int nfolds) |
int |
largestCat() |
int |
numStart() |
static Frame |
prepareFrame(Frame source,
int[] ignored_cols,
boolean dropConstantCols,
boolean dropNACols) |
static Frame |
prepareFrame(Frame source,
Vec response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols) |
static Frame |
prepareFrame(Frame source,
Vec response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols,
boolean dropNACols)
Prepare a Frame (with a single response) to be processed by the FrameTask
1) Place response at the end
2) (Optionally) Remove columns with constant values or with greater than 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 int _responses
public boolean _standardize
public boolean _standardize_response
public boolean _useAllFactorLevels
public int _nums
public int _cats
public int[] _catOffsets
public double[] _normMul
public double[] _normSub
public double[] _normRespMul
public double[] _normRespSub
public int _foldId
public int _nfolds
public FrameTask.DataInfo(Frame fr, int hasResponses, boolean useAllFactorLvls, double[] normSub, double[] normMul)
public FrameTask.DataInfo(Frame fr, int hasResponses, boolean useAllFactorLvls, double[] normSub, double[] normMul, double[] normRespSub, double[] normRespMul)
public FrameTask.DataInfo(Frame fr, int nResponses, boolean useAllFactors, boolean standardize)
public FrameTask.DataInfo(Frame fr, int nResponses, boolean useAllFactorLevels, boolean standardize, boolean standardize_response)
public FrameTask.DataInfo deep_clone()
public static Frame prepareFrame(Frame source, Vec response, int[] ignored_cols, boolean toEnum, boolean dropConstantCols, boolean dropNACols)
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 static Frame prepareFrame(Frame source, int[] ignored_cols, boolean dropConstantCols, boolean dropNACols)
public static Frame prepareFrame(Frame source, Vec response, int[] ignored_cols, boolean toEnum, boolean dropConstantCols)
public FrameTask.DataInfo filterExpandedColumns(int[] cols)
public 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()