water.fvec.Frame.deleteTempFrameAndItsNonSharedVecs()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中water.fvec.Frame.deleteTempFrameAndItsNonSharedVecs()方法的一些代码示例,展示了Frame.deleteTempFrameAndItsNonSharedVecs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Frame.deleteTempFrameAndItsNonSharedVecs()方法的具体详情如下:
包路径:water.fvec.Frame
类名称:Frame
方法名:deleteTempFrameAndItsNonSharedVecs

Frame.deleteTempFrameAndItsNonSharedVecs介绍

暂无

代码示例

代码示例来源:origin: h2oai/h2o-3

/**
 * Delete the AutoML-related objects, but leave the grids and models that it built.
 */
@Override
protected Futures remove_impl(Futures fs) {
 Frame.deleteTempFrameAndItsNonSharedVecs(trainingFrame, origTrainingFrame);
 leaderboard.remove(fs);
 userFeedback.remove(fs);
 return super.remove_impl(fs);
}

代码示例来源:origin: h2oai/h2o-3

public void deleteBaseModelPredictions() {
 if (_output._base_model_predictions_keys != null) {
  for (Key<Frame> key : _output._base_model_predictions_keys) {
   if (_output._levelone_frame_id != null && key.get() != null)
    Frame.deleteTempFrameAndItsNonSharedVecs(key.get(), _output._levelone_frame_id);
   else
    key.remove();
  }
  _output._base_model_predictions_keys = null;
 }
}

代码示例来源:origin: h2oai/h2o-3

Frame.deleteTempFrameAndItsNonSharedVecs(adaptedFrame, fr);
Frame.deleteTempFrameAndItsNonSharedVecs(levelOneAdapted, levelOneFrame);
return metaBs.outputFrame(Key.<Frame>make(destination_key), metaNames, metaDomains);

代码示例来源:origin: ai.h2o/h2o-automl

/**
 * Delete the AutoML-related objects, but leave the grids and models that it built.
 */
@Override
protected Futures remove_impl(Futures fs) {
 Frame.deleteTempFrameAndItsNonSharedVecs(trainingFrame, origTrainingFrame);
 leaderboard.remove(fs);
 userFeedback.remove(fs);
 return super.remove_impl(fs);
}

代码示例来源:origin: ai.h2o/h2o-algos

/**
 * Prepare a "level one" frame for a given set of models and actuals.  Used for preparing validation frames
 * for the metalearning step, and could also be used for bulk predictions for a StackedEnsemble.
 */
private Frame prepareValidationLevelOneFrame(String levelOneKey, Key<Model>[] baseModelKeys, Frame actuals) {
 List<Model> baseModels = new ArrayList<>();
 List<Frame> baseModelPredictions = new ArrayList<>();
 for (Key<Model> k : baseModelKeys) {
  Model aModel = DKV.getGet(k);
  if (null == aModel)
   throw new H2OIllegalArgumentException("Failed to find base model: " + k);
  Key<Frame> predsKey = buildPredsKey(aModel, actuals);
  Frame aPred = aModel.score(actuals, predsKey.toString()); // TODO: cache predictions
  baseModels.add(aModel);
  if (!aModel._output.isMultinomialClassifier()) {
   baseModelPredictions.add(aPred);
  } else {
   List<String> predColNames = new ArrayList<>(Arrays.asList(aPred.names()));
   predColNames.remove("predict");
   String[] multClassNames = predColNames.toArray(new String[0]);
   baseModelPredictions.add(aPred.subframe(multClassNames));
  }
 }
 Frame levelOne = prepareLevelOneFrame(levelOneKey, baseModels.toArray(new Model[0]), baseModelPredictions.toArray(new Frame[0]), actuals);
 // remove baseModelPredictions frames and all the non-preds vecs from the DKV
 for (Frame aPred : baseModelPredictions)
  Frame.deleteTempFrameAndItsNonSharedVecs(aPred, levelOne);
 return levelOne;
}

代码示例来源:origin: ai.h2o/h2o-algos

Frame.deleteTempFrameAndItsNonSharedVecs(adaptedFrame, fr);
Frame.deleteTempFrameAndItsNonSharedVecs(levelOneAdapted, levelOneFrame);
return metaBs.outputFrame(Key.<Frame>make(destination_key), metaNames, metaDomains);

相关文章