congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Rapids
Code IndexAdd Tabnine to your IDE (free)

How to use
Rapids
in
water.rapids

Best Java code snippets using water.rapids.Rapids (Showing top 13 results out of 315)

origin: h2oai/h2o-3

private Frame execRapidsAndGetFrame(String astTree) {
  Val val = Rapids.exec(astTree);
  return register(val.getFrame());
}
origin: h2oai/h2o-3

public long rowsWithNa() {
 if( _rowsWithNa!=-1 ) return _rowsWithNa;
 String x = String.format("(na.omit %s)", _fr._key);
 Val res = Rapids.exec(x);
 Frame f = res.getFrame();
 long cnt = _fr.numRows()  -  f.numRows();
 f.delete();
 return (_rowsWithNa=cnt);
}
origin: h2oai/h2o-3

_train = Rapids.exec(String.format("(na.omit %s)", tranRebalanced._key)).getFrame(); // remove NA rows
DKV.remove(tranRebalanced._key);
checkMemoryFootPrint();
origin: h2oai/h2o-3

@Test
public void calculateSingleNumberResultTest() {
  fr = new TestFrameBuilder()
      .withName("testFrame")
      .withColNames("ColA")
      .withVecTypes(Vec.T_NUM)
      .withDataForCol(0, ard(1, 2, 3))
      .build();
  String tree = "(sum (cols testFrame [0.0] ))";
  Val val = Rapids.exec(tree);
  assertEquals(val.getNum(), 6.0, 1e-5);
}
origin: h2oai/h2o-3

@Test
public void changeKeyFrameTest() {
 Frame res = null;
 try {
  fr = new TestFrameBuilder()
      .withName("testFrame")
      .withColNames("ColA")
      .withVecTypes(Vec.T_NUM)
      .withDataForCol(0, ard(1, 2))
      .build();
  String tree = "( append testFrame 42 'appended' )";
  Val val = Rapids.exec(tree);
  res = val.getFrame();
  res._key = fr._key;
  DKV.put(fr._key, res);
 } finally {
  res.delete();
 }
}
origin: h2oai/h2o-3

 model = job.trainModel().get();
 String s = "(tmp= py_4 (rows (cols_py " + model._output._representation_key + " [0 1]) (tmp= py_3 (| (| (| (| (| (== (tmp= py_2 " + acs_zcta_fr._key + ") \"10065\") (== py_2 \"11219\")) (== py_2 \"66753\")) (== py_2 \"84104\")) (== py_2 \"94086\")) (== py_2 \"95014\")))))";
 Val val = Rapids.exec(s);
} catch (Throwable t) {
 t.printStackTrace();
origin: h2oai/h2o-3

Frame withAppendedFrame = Rapids.exec(tree).getFrame();
withAppendedFrame._key = Key.make();
DKV.put(withAppendedFrame);
origin: h2oai/h2o-3

_train = Rapids.exec(String.format("(na.omit %s)", tranRebalanced._key)).getFrame(); // remove NA rows
DKV.remove(tranRebalanced._key);
origin: h2oai/h2o-3

Frame tmp = Rapids.exec(ast).getFrame();
pred2labels = tmp.vecs()[0];
cm = ConfusionMatrixTest.buildCM(labels, pred2labels);
origin: ai.h2o/h2o-automl

private Frame execRapidsAndGetFrame(String astTree) {
  Val val = Rapids.exec(astTree);
  return register(val.getFrame());
}
origin: ai.h2o/h2o-automl

public long rowsWithNa() {
 if( _rowsWithNa!=-1 ) return _rowsWithNa;
 String x = String.format("(na.omit %s)", _fr._key);
 Val res = Rapids.exec(x);
 Frame f = res.getFrame();
 long cnt = _fr.numRows()  -  f.numRows();
 f.delete();
 return (_rowsWithNa=cnt);
}
origin: ai.h2o/h2o-algos

_train = Rapids.exec(String.format("(na.omit %s)", tranRebalanced._key)).getFrame(); // remove NA rows
DKV.remove(tranRebalanced._key);
checkMemoryFootPrint();
origin: ai.h2o/h2o-algos

_train = Rapids.exec(String.format("(na.omit %s)", tranRebalanced._key)).getFrame(); // remove NA rows
DKV.remove(tranRebalanced._key);
water.rapidsRapids

Most used methods

  • exec

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now