本文整理汇总了Java中water.fvec.Frame.checksum方法的典型用法代码示例。如果您正苦于以下问题:Java Frame.checksum方法的具体用法?Java Frame.checksum怎么用?Java Frame.checksum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类water.fvec.Frame
的用法示例。
在下文中一共展示了Frame.checksum方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fillFromImpl
import water.fvec.Frame; //导入方法依赖的package包/类
@Override public S fillFromImpl(ModelMetrics modelMetrics) {
// If we're copying in a Model we need a ModelSchema of the right class to fill into.
Model m = modelMetrics.model();
if( m != null ) {
this.model = new ModelKeyV3(m._key);
this.model_category = m._output.getModelCategory();
this.model_checksum = m.checksum();
}
// If we're copying in a Frame we need a Frame Schema of the right class to fill into.
Frame f = modelMetrics.frame();
if (null != f) { //true == f.getClass().getSuperclass().getGenericSuperclass() instanceof ParameterizedType
this.frame = new FrameKeyV3(f._key);
this.frame_checksum = f.checksum();
}
PojoUtils.copyProperties(this, modelMetrics, PojoUtils.FieldNaming.ORIGIN_HAS_UNDERSCORES,
new String[]{"model", "model_category", "model_checksum", "frame", "frame_checksum"});
return (S) this;
}
示例2: start
import water.fvec.Frame; //导入方法依赖的package包/类
GridSearch start() {
final int gridSize = _hyperSpaceWalker.getHyperSpaceSize();
Log.info("Starting gridsearch: estimated size of search space = " + gridSize);
// Create grid object and lock it
// Creation is done here, since we would like make sure that after leaving
// this function the grid object is in DKV and accessible.
Grid<MP> grid = DKV.getGet(dest());
if (grid != null) {
Frame specTrainFrame = _hyperSpaceWalker.getParams().train();
Frame oldTrainFrame = grid.getTrainingFrame();
if (!specTrainFrame._key.equals(oldTrainFrame._key) ||
specTrainFrame.checksum() != oldTrainFrame.checksum()) {
throw new H2OIllegalArgumentException("training_frame", "grid", "Cannot append new models"
+ " to a grid with different training input");
}
grid.write_lock(jobKey());
} else {
grid =
new Grid<>(dest(),
_hyperSpaceWalker.getParams(),
_hyperSpaceWalker.getHyperParamNames(),
_modelFactory.getModelName(),
_hyperSpaceWalker.getParametersBuilderFactory().getFieldNamingStrategy());
grid.delete_and_lock(jobKey());
}
// Java trick
final Grid<MP> gridToExpose = grid;
// Install this as job functions
start(new H2O.H2OCountedCompleter() {
@Override
public void compute2() {
gridSearch(gridToExpose);
tryComplete();
}
}, gridSize, true);
return this;
}
示例3: ModelMetrics
import water.fvec.Frame; //导入方法依赖的package包/类
public ModelMetrics(Model model, Frame frame, double MSE, String desc) {
super(buildKey(model, frame));
_description = desc;
// Do not cache fields now
_modelKey = model._key;
_frameKey = frame._key;
_model_category = model._output.getModelCategory();
_model_checksum = model.checksum();
_frame_checksum = frame.checksum();
_MSE = MSE;
_scoring_time = System.currentTimeMillis();
}
示例4: isForFrame
import water.fvec.Frame; //导入方法依赖的package包/类
public boolean isForFrame(Frame f) { return _frame_checksum == f.checksum(); }