| Package | Description |
|---|---|
| hex |
The hex package contains math and machine learning algorithms for H2O.
|
| hex.deeplearning | |
| hex.drf | |
| hex.gapstat | |
| hex.gbm |
Gradient Boosting Machine.
|
| hex.glm | |
| hex.la | |
| hex.pca | |
| hex.singlenoderf | |
| water |
The water package contains the implementation of H2O's core.
|
| water.api |
API classes that help implement the embedded web browser interface.
|
| water.exec |
Implementation of the interpreter available in the H2O console.
|
| water.fvec |
Fluid Vector API implementation.
|
| water.schemas | |
| water.util |
Miscellaneous utility classes (for example, for logging).
|
| Modifier and Type | Field and Description |
|---|---|
Frame |
FrameTask.DataInfo._adaptedFrame |
Frame |
Summary2.SummaryPerRow._fr |
Frame |
ReBalance.source |
Frame |
Interaction.source |
Frame |
CoxPH.source |
| Modifier and Type | Method and Description |
|---|---|
static Frame |
OneHot.expandDataset(Frame fr,
Key destkey) |
Frame[] |
FrameSplitter.getResult()
Blocking call to obtain a result of computation.
|
Frame[] |
FrameExtractor.getResult()
Blocking call to obtain a result of computation.
|
Frame |
CoxPH.CoxPHModel.makeSurvfit(Key key,
double x_new) |
static Frame |
FrameTask.DataInfo.prepareFrame(Frame source,
int[] ignored_cols,
boolean dropConstantCols,
boolean dropNACols) |
static Frame |
FrameTask.DataInfo.prepareFrame(Frame source,
Vec[] response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols,
boolean dropNACols) |
static Frame |
FrameTask.DataInfo.prepareFrame(Frame source,
Vec response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols) |
static Frame |
FrameTask.DataInfo.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
|
| Modifier and Type | Method and Description |
|---|---|
T |
FrameTask.dfork(Frame fr) |
static Frame |
OneHot.expandDataset(Frame fr,
Key destkey) |
protected void |
CoxPH.CoxPHModel.initStats(Frame source,
FrameTask.DataInfo dinfo) |
static Frame |
FrameTask.DataInfo.prepareFrame(Frame source,
int[] ignored_cols,
boolean dropConstantCols,
boolean dropNACols) |
static Frame |
FrameTask.DataInfo.prepareFrame(Frame source,
Vec[] response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols,
boolean dropNACols) |
static Frame |
FrameTask.DataInfo.prepareFrame(Frame source,
Vec response,
int[] ignored_cols,
boolean toEnum,
boolean dropConstantCols) |
static Frame |
FrameTask.DataInfo.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
|
| Constructor and Description |
|---|
CoxPH.CoxPHModel(CoxPH job,
Key selfKey,
Key dataKey,
Frame fr,
float[] priorClassDist) |
FrameExtractor(Frame dataset,
Key[] destKeys,
Key jobKey) |
FrameSplitter(Frame dataset,
float[] ratios) |
FrameSplitter(Frame dataset,
float[] ratios,
Key[] destKeys,
Key jobKey) |
FrameTask.DataInfo(Frame fr,
int hasResponses,
boolean hasIntercept,
boolean useAllFactorLvls,
double[] normSub,
double[] normMul,
FrameTask.DataInfo.TransformType predictor_transform,
double[] normRespSub,
double[] normRespMul) |
FrameTask.DataInfo(Frame fr,
int nResponses,
boolean hasIntercept,
boolean useAllFactors,
FrameTask.DataInfo.TransformType predictor_transform) |
FrameTask.DataInfo(Frame fr,
int nResponses,
boolean hasIntercept,
boolean useAllFactorLevels,
FrameTask.DataInfo.TransformType predictor_transform,
FrameTask.DataInfo.TransformType response_transform) |
NFoldFrameExtractor(Frame dataset,
int nfolds,
int afold,
Key[] destKeys,
Key jobKey) |
Summary2.SummaryPerRow(Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
DeepLearningModel.score(Frame frame)
This is an overridden version of Model.score().
|
Frame |
DeepLearningModel.scoreAutoEncoder(Frame frame)
Score auto-encoded reconstruction (on-the-fly, without allocating the reconstruction as done in Frame score(Frame fr))
|
Frame |
DeepLearningModel.scoreDeepFeatures(Frame frame,
int layer)
Score auto-encoded reconstruction (on-the-fly, without allocating the reconstruction as done in Frame score(Frame fr))
|
| Modifier and Type | Method and Description |
|---|---|
void |
DeepLearning.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a DeepLearning model by building new models on N train/test holdout splits
|
void |
DeepLearning.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a DeepLearning model by building new models on N train/test holdout splits
|
Frame |
DeepLearningModel.score(Frame frame)
This is an overridden version of Model.score().
|
Frame |
DeepLearningModel.scoreAutoEncoder(Frame frame)
Score auto-encoded reconstruction (on-the-fly, without allocating the reconstruction as done in Frame score(Frame fr))
|
Frame |
DeepLearningModel.scoreDeepFeatures(Frame frame,
int layer)
Score auto-encoded reconstruction (on-the-fly, without allocating the reconstruction as done in Frame score(Frame fr))
|
| Constructor and Description |
|---|
DeepLearningTask2(Frame train,
DeepLearningModel.DeepLearningModelInfo model_info,
float sync_fraction)
Construct a DeepLearningTask2 where every node trains on the entire training dataset
|
| Modifier and Type | Method and Description |
|---|---|
Frame |
DRF.score(Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
protected DRF.DRFModel |
DRF.buildModel(DRF.DRFModel model,
Frame fr,
String[] names,
String[][] domains,
Timer t_build) |
static TreeMeasuresCollector.TreeSSE |
TreeMeasuresCollector.collectSSE(DTree.TreeModel.CompressedTree[] tree,
int nclasses,
Frame f,
int ncols,
float rate,
int variable) |
static TreeMeasuresCollector.TreeVotes |
TreeMeasuresCollector.collectVotes(DTree.TreeModel.CompressedTree[] tree,
int nclasses,
Frame f,
int ncols,
float rate,
int variable) |
void |
DRF.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a DRF model by building new models on N train/test holdout splits
|
void |
DRF.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a DRF model by building new models on N train/test holdout splits
|
protected VarImp |
DRF.doVarImpCalc(DRF.DRFModel model,
DTree[] ktrees,
int tid,
Frame fTrain,
boolean scale)
On-the-fly version for varimp.
|
protected void |
DRF.initWorkFrame(DRF.DRFModel initialModel,
Frame fr) |
Frame |
DRF.score(Frame fr) |
| Constructor and Description |
|---|
GapStatisticModel(Key selfKey,
Key dataKey,
Frame fr,
int ks,
double[] wks,
double[] log_wks,
double[] sk,
int k_max,
int b_max,
int k,
int b) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
GBM.score(Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
protected DHistogram[][][] |
SharedTreeModelBuilder.buildLayer(Frame fr,
DTree[] ktrees,
int[] leafs,
DHistogram[][][] hcs,
boolean subset,
boolean build_tree_one_node) |
protected GBM.GBMModel |
GBM.buildModel(GBM.GBMModel model,
Frame fr,
String[] names,
String[][] domains,
Timer t_build) |
protected abstract TM |
SharedTreeModelBuilder.buildModel(TM initialModel,
Frame trainFr,
String[] names,
String[][] domains,
Timer t_build)
Builds model
|
protected void |
SharedTreeModelBuilder.cleanUp(Frame fr,
Timer t_build) |
void |
GBM.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a GBM model by building new models on N train/test holdout splits
|
void |
GBM.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a GBM model by building new models on N train/test holdout splits
|
protected void |
SharedTreeModelBuilder.debugPrintTreeColumns(Frame fr) |
SharedTreeModelBuilder.Score |
SharedTreeModelBuilder.Score.doIt(Model model,
Frame fr,
Job.ValidatedJob.Response2CMAdaptor vadaptor,
boolean oob,
boolean build_tree_one_node)
Compute CM and MSE on either the training or testing dataset.
|
protected TM |
SharedTreeModelBuilder.doScoring(TM model,
Frame fTrain,
DTree[] ktrees,
int tid,
DTree.TreeModel.TreeStats tstats,
boolean finalScoring,
boolean oob,
boolean build_tree_one_node) |
protected VarImp |
GBM.doVarImpCalc(GBM.GBMModel model,
DTree[] ktrees,
int tid,
Frame validationFrame,
boolean scale)
Compute relative variable importance for GBM model.
|
protected abstract VarImp |
SharedTreeModelBuilder.doVarImpCalc(TM model,
DTree[] ktrees,
int tid,
Frame validationFrame,
boolean scale) |
static DHistogram[] |
DHistogram.initialHist(Frame fr,
int ncols,
int nbins,
DHistogram[] hs,
boolean doGrpSplit,
boolean isBinom) |
protected void |
GBM.initWorkFrame(GBM.GBMModel initialModel,
Frame fr) |
protected abstract void |
SharedTreeModelBuilder.initWorkFrame(TM initialModel,
Frame fr)
Initialize working frame.
|
Frame |
GBM.score(Frame fr) |
protected Vec |
SharedTreeModelBuilder.vec_nids(Frame fr,
int t) |
protected Vec |
SharedTreeModelBuilder.vec_resp(Frame fr,
int t) |
protected Vec |
SharedTreeModelBuilder.vec_tree(Frame fr,
int c) |
| Modifier and Type | Field and Description |
|---|---|
protected Frame |
GLM2.beta_constraints |
Frame |
GLM2.Source.fr |
| Modifier and Type | Method and Description |
|---|---|
GLM2 |
GLM2.setBetaConstraints(Frame f) |
| Constructor and Description |
|---|
GLM2.Source(Frame fr,
Vec response,
boolean standardize) |
GLM2.Source(Frame fr,
Vec response,
boolean standardize,
boolean intercept) |
GLM2.Source(Frame fr,
Vec response,
boolean standardize,
boolean intercept,
Vec offset) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
Matrix.mult(Frame y) |
Frame |
Matrix.outerProd() |
Frame |
Matrix.trans() |
| Modifier and Type | Method and Description |
|---|---|
Frame |
Matrix.mult(Frame y) |
| Constructor and Description |
|---|
Matrix(Frame x) |
| Constructor and Description |
|---|
PCA(String desc,
Key dest,
Frame src,
double tolerance,
boolean standardize) |
PCA(String desc,
Key dest,
Frame src,
int max_pc,
double tolerance,
boolean standardize) |
| Modifier and Type | Field and Description |
|---|---|
Frame |
CMTask._data |
| Modifier and Type | Method and Description |
|---|---|
Frame |
SpeeDRF.score(Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
static VariableImportance.TreeVotes[] |
VariableImportance.collectVotes(int trees,
int nclasses,
Frame f,
int ncols,
float rate,
int variable,
SpeeDRFModel model,
Vec resp) |
int[] |
SpeeDRFModel.colMap(Frame df) |
void |
SpeeDRF.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a SpeeDRF model by building new models on N train/test holdout splits
|
void |
SpeeDRF.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate a SpeeDRF model by building new models on N train/test holdout splits
|
static double |
CMTask.MSETask.doTask(Frame fr) |
protected VarImp |
SpeeDRFModel.doVarImpCalc(Frame fr,
SpeeDRFModel model,
Vec resp) |
protected hex.singlenoderf.DataAdapter |
DABuilder.inhaleData(Frame fr,
boolean useNonLocal)
Build data adapter for given frame
|
SpeeDRFModel |
SpeeDRF.initModel(Frame train,
Frame test,
float[] priorDist) |
Frame |
SpeeDRF.score(Frame fr) |
static CMTask |
CMTask.scoreTask(SpeeDRFModel model,
int treesToUse,
boolean computeOOB,
Frame fr,
Vec resp) |
| Constructor and Description |
|---|
SpeeDRFModel(Key selfKey,
Key dataKey,
Frame fr,
String[] domain,
SpeeDRF params,
float[] priorDist) |
| Modifier and Type | Field and Description |
|---|---|
Frame |
MRTask2._fr
The Vectors to work on.
|
Frame |
Job.FrameJob.source |
Frame |
Job.ValidatedJob.validation |
| Modifier and Type | Method and Description |
|---|---|
Frame[] |
Model.adapt(Frame fr,
boolean exact)
Build an adapted Frame from the given Frame.
|
Frame[] |
Model.adapt(Frame fr,
boolean exact,
boolean haveResponse) |
protected Frame |
Job.ValidatedJob.getOrigValidation()
Returns original validation dataset.
|
protected Frame |
Job.ValidatedJob.getValidation()
Return validation dataset which can be adapted to a model if it is necessary.
|
Frame |
Job.ValidatedJob.Response2CMAdaptor.getValidation()
Returns validation dataset.
|
Frame |
MRTask2.outputFrame(Key key,
String[] names,
String[][] domains) |
Frame |
MRTask2.outputFrame(Key key,
String[] names,
String[][] domains,
Futures fs) |
Frame |
MRTask2.outputFrame(String[] names,
String[][] domains) |
Frame |
Model.score(Frame fr)
Bulk score for given
fr frame. |
Frame |
Model.score(Frame fr,
boolean adapt)
Bulk score the frame
fr, producing a Frame result; the 1st Vec is the
predicted class, the remaining Vecs are the probability distributions. |
protected Frame |
Model.scoreImpl(Frame adaptFrm)
Score already adapted frame.
|
protected Frame |
Job.ColumnsJob.selectFrame(Frame frame) |
| Modifier and Type | Method and Description |
|---|---|
Frame[] |
Model.adapt(Frame fr,
boolean exact)
Build an adapted Frame from the given Frame.
|
Frame[] |
Model.adapt(Frame fr,
boolean exact,
boolean haveResponse) |
void |
MRTask2.asyncExec(Frame fr) |
void |
MRTask2.asyncExec(int outputs,
Frame fr,
boolean run_local)
Fork the task in strictly non-blocking fashion.
|
static Key |
ModelMetrics.buildKey(Model model,
Frame frame) |
double |
Model.calcError(Frame ftest,
Vec vactual,
Frame fpreds,
Frame hitratio_fpreds,
String label,
boolean printMe,
int max_conf_mat_size,
ConfusionMatrix cm,
AUC auc,
HitRatio hr)
Compute the model error for a given test data set
For multi-class classification, this is the classification error based on assigning labels for the highest predicted per-class probability.
|
static boolean |
Job.checkIdx(Frame source,
int[] idx) |
void |
Job.ValidatedJob.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate this Job (to be overridden for each instance, which also calls genericCrossValidation)
|
void |
Job.ValidatedJob.crossValidate(Frame[] splits,
Frame[] cv_preds,
long[] offsets,
int i)
Cross-Validate this Job (to be overridden for each instance, which also calls genericCrossValidation)
|
T |
MRTask2.dfork(Frame fr) |
T |
MRTask2.dfork(int outputs,
Frame fr,
boolean run_local) |
T |
MRTask2.doAll(Frame fr) |
T |
MRTask2.doAll(Frame fr,
boolean run_local)
Invokes the map/reduce computation over the given Frame.
|
T |
MRTask2.doAll(int outputs,
Frame fr) |
T |
MRTask2.doAll(int outputs,
Frame fr,
boolean run_local) |
void |
MRTask2.exec(Frame fr) |
void |
MRTask2.exec(int outputs,
Frame fr,
boolean run_local) |
protected void |
Job.ValidatedJob.genericCrossValidation(Frame[] splits,
long[] offsets,
int i)
Helper to perform the generic part of cross validation
Expected to be called from each specific instance's crossValidate method
|
static ModelMetrics |
ModelMetrics.getFromDKV(Model model,
Frame frame) |
protected void |
Func.gtrash(Frame fr)
Append all vectors from given frame to a global clean up list.
|
protected void |
Func.ltrash(Frame fr)
Put given frame vectors into local trash which can be emptied by a user calling the
Func.emptyLTrash() method. |
Frame |
Model.score(Frame fr)
Bulk score for given
fr frame. |
Frame |
Model.score(Frame fr,
boolean adapt)
Bulk score the frame
fr, producing a Frame result; the 1st Vec is the
predicted class, the remaining Vecs are the probability distributions. |
float[] |
Model.score(Frame fr,
boolean exact,
int row)
Single row scoring, on a compatible Frame.
|
void |
Model.scoreCrossValidation(Job.ValidatedJob job,
Frame source,
Vec response,
Frame[] cv_preds,
long[] offsets)
Compute the cross validation error from an array of predictions for N folds.
|
void |
Model.scoreCrossValidation(Job.ValidatedJob job,
Frame source,
Vec response,
Frame[] cv_preds,
long[] offsets)
Compute the cross validation error from an array of predictions for N folds.
|
protected Frame |
Model.scoreImpl(Frame adaptFrm)
Score already adapted frame.
|
protected Frame |
Job.ColumnsJob.selectFrame(Frame frame) |
protected Vec[] |
Job.ColumnsJob.selectVecs(Frame frame) |
void |
Model.testJavaScoring(Frame fr) |
| Constructor and Description |
|---|
Model(Key selfKey,
Key dataKey,
Frame fr,
float[] priorClassDist)
Full constructor from frame: Strips out the Vecs to just the names needed
to match columns later for future datasets.
|
UniqueFrameId(Key key,
Frame frame) |
UniqueFrameId(String key,
long creation_epoch_time_millis,
String id,
Frame frame) |
| Modifier and Type | Field and Description |
|---|---|
Frame |
HitRatio.actual |
Frame |
GainsLiftTable.actual |
Frame |
ConfusionMatrix.actual |
Frame |
AUC.actual |
Frame |
Predict.data |
Frame |
GLMPredict.data |
Frame |
HitRatio.predict |
Frame |
GainsLiftTable.predict |
Frame |
ConfusionMatrix.predict |
Frame |
AUC.predict |
Frame |
OneHot.source |
Frame |
NFoldFrameExtractPage.source |
Frame |
Impute.source |
Frame |
FrameSplitPage.source |
Frame |
QuantilesPage.source_key |
Frame |
ToInt2.src_key |
Frame |
ToEnum2.src_key |
| Modifier and Type | Method and Description |
|---|---|
protected Frame |
RequestArguments.DRFCopyDataBool.fr() |
protected Frame |
RequestArguments.FrameKeyVec.fr() |
protected Frame |
RequestArguments.FrameKeyMultiVec.fr() |
| Modifier and Type | Method and Description |
|---|---|
protected static Map<String,Frame> |
Frames.fetchAll()
Fetch all Frames from the KV store.
|
| Modifier and Type | Method and Description |
|---|---|
protected static int |
RequestArguments.frameColumnNameToIndex(Frame fr,
String input,
boolean namesOnly) |
protected static RequestBuilders.Response |
Frames.scoreOne(Frame frame,
Model score_model)
Score a frame with the given model.
|
protected static RequestBuilders.Response |
Models.scoreOne(Frame frame,
Model score_model,
boolean adapt)
Score a frame with the given model.
|
boolean |
RequestArguments.FrameKeyMultiVec.shouldIgnore(int i,
Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Frames.FrameSummary> |
Frames.generateFrameSummaries(Set<String> keys,
Map<String,Frame> frames,
boolean find_compatible_models,
Map<String,Model> all_models,
Map<String,Set<String>> all_models_cols) |
static Map<String,Models.ModelSummary> |
Models.generateModelSummaries(Set<String> keys,
Map<String,Model> models,
boolean find_compatible_frames,
Map<String,Frame> all_frames,
Map<String,Set<String>> all_frames_cols) |
protected static void |
Models.summarizeAndEnhanceModel(Models.ModelSummary summary,
Model model,
boolean find_compatible_frames,
Map<String,Frame> all_frames,
Map<String,Set<String>> all_frames_cols)
Summarize subclasses of water.Model.
|
| Modifier and Type | Method and Description |
|---|---|
Frame |
Env.ary(int i) |
Frame |
Env.frId(int d,
int n) |
Frame |
Env.peekAry() |
Frame |
Env.popAry() |
Frame |
Env.popXAry() |
Frame |
Env.subRef(Frame fr,
String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
Env.poppush(int n,
Frame ary,
String key) |
Frame |
Env.subRef(Frame fr,
String key) |
| Constructor and Description |
|---|
Flow.FlowFrame(Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
Frame.add(Frame fr,
boolean rename) |
Frame |
Frame.add(Frame fr,
String[] names)
Appends an entire Frame
|
Frame |
Frame.add(String name,
Vec vec)
Appends a named column, keeping the last Vec as the response
|
Frame |
Frame.deepSlice(Object orows,
Object ocols) |
Frame |
Frame.extractFrame(int startIdx,
int endIdx) |
Frame |
RebalanceDataSet.getResult() |
Frame |
Frame.makeCompatible(Frame f) |
static Frame |
ParseDataset2.parse(Key okey,
Key[] keys) |
static Frame |
ParseDataset2.parse(Key okey,
Key[] keys,
CustomParser.ParserSetup globalSetup,
boolean delete_on_done) |
Frame |
Frame.prepend(String name,
Vec vec)
Insert a named column as the first column
|
Frame |
Frame.subframe(int startIdx,
int endIdx)
Create a subframe from given interval of columns.
|
Frame |
Frame.subframe(String[] names)
Returns a subframe of this frame containing only vectors with desired names.
|
Frame[] |
Frame.subframe(String[] names,
double c)
Returns a new frame composed of vectors of this frame selected by given names.
|
| Modifier and Type | Method and Description |
|---|---|
Frame |
Frame.add(Frame fr,
boolean rename) |
Frame |
Frame.add(Frame fr,
String[] names)
Appends an entire Frame
|
boolean |
Frame.isIdentical(Frame f)
Task to compare the two frames, returns true if they are identical.
|
Frame |
Frame.makeCompatible(Frame f) |
| Constructor and Description |
|---|
Frame.FrameIdenticalTask(Frame f1,
Frame f2) |
Frame(Frame fr) |
RebalanceDataSet(Frame modelFrame,
Frame srcFrame,
Key dstKey)
Constructor for make-compatible task.
|
RebalanceDataSet(Frame modelFrame,
Frame srcFrame,
Key dstKey,
H2O.H2OCountedCompleter cmp,
Key jobKey) |
RebalanceDataSet(Frame srcFrame,
Key dstKey,
int nchunks)
Constructor for re-balancing the dataset (e.g.
|
RebalanceDataSet(Frame srcFrame,
Key dstKey,
int nchunks,
H2O.H2OCountedCompleter cmp,
Key jobKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
Schema.acceptsFrame(Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
static Frame |
FrameUtils.frame(String[] names,
double[]... rows)
Create a new frame based on given row data.
|
static Frame |
FrameUtils.frame(String[] names,
Vec[] vecs)
Create a new frame based on given column data.
|
static Frame |
FrameUtils.frame(String name,
Vec vec)
Create a frame with single column represented by given vector.
|
static Frame |
FrameUtils.parseFrame(Key okey,
File... files)
Parse given file into the form of frame represented by the given key.
|
static Frame |
FrameUtils.parseFrame(Key okey,
Key... ikeys) |
static Frame |
MRUtils.sampleFrame(Frame fr,
long rows,
long seed)
Sample rows from a frame.
|
static Frame |
MRUtils.sampleFrameStratified(Frame fr,
Vec label,
float[] sampling_ratios,
long seed,
boolean debug)
Stratified sampling
|
static Frame |
MRUtils.sampleFrameStratified(Frame fr,
Vec label,
float[] sampling_ratios,
long maxrows,
long seed,
boolean allowOversampling,
boolean verbose)
Stratified sampling for classifiers
|
static Frame |
MRUtils.shuffleAndBalance(Frame fr,
int splits,
long seed,
boolean local,
boolean shuffle)
Global redistribution of a Frame (balancing of chunks), done by calling process (all-to-one + one-to-all)
|
static Frame |
MRUtils.shuffleFramePerChunk(Frame fr,
long seed)
Row-wise shuffle of a frame (only shuffles rows inside of each chunk)
|
static Frame |
MRUtils.shuffleFramePerChunk(Key outputFrameKey,
Frame fr,
long seed) |
| Modifier and Type | Method and Description |
|---|---|
static ChunkSummary |
FrameUtils.chunkSummary(Frame fr)
Compute a chunk summary (how many chunks of each type, relative size, total size)
|
static Vec |
MRUtils.getL2(Frame fr,
double[] scale)
Compute the L2 norm for each row of the frame
|
static Frame |
MRUtils.sampleFrame(Frame fr,
long rows,
long seed)
Sample rows from a frame.
|
static Frame |
MRUtils.sampleFrameStratified(Frame fr,
Vec label,
float[] sampling_ratios,
long seed,
boolean debug)
Stratified sampling
|
static Frame |
MRUtils.sampleFrameStratified(Frame fr,
Vec label,
float[] sampling_ratios,
long maxrows,
long seed,
boolean allowOversampling,
boolean verbose)
Stratified sampling for classifiers
|
static Frame |
MRUtils.shuffleAndBalance(Frame fr,
int splits,
long seed,
boolean local,
boolean shuffle)
Global redistribution of a Frame (balancing of chunks), done by calling process (all-to-one + one-to-all)
|
static Frame |
MRUtils.shuffleFramePerChunk(Frame fr,
long seed)
Row-wise shuffle of a frame (only shuffles rows inside of each chunk)
|
static Frame |
MRUtils.shuffleFramePerChunk(Key outputFrameKey,
Frame fr,
long seed) |
static SB |
JCodeGen.toClass(SB sb,
String classSig,
String varname,
Frame f,
int nrows,
String comment)
Generates data sample as a dedicated class with static
double[][] member. |
static SB |
JCodeGen.toStaticVar(SB sb,
String varname,
Frame f,
int nrows,
String comment)
Outputs given frame as static variable with given name.
|
Copyright © 2013–2014 0xdata. All rights reserved.