Tabnine Logo
Rapids.exec
Code IndexAdd Tabnine to your IDE (free)

How to use
exec
method
in
water.rapids.Rapids

Best Java code snippets using water.rapids.Rapids.exec (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.rapidsRapidsexec

Popular methods of Rapids

    Popular in Java

    • Running tasks concurrently on multiple threads
    • addToBackStack (FragmentTransaction)
    • onCreateOptionsMenu (Activity)
    • requestLocationUpdates (LocationManager)
    • IOException (java.io)
      Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Runner (org.openjdk.jmh.runner)
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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