Other¶
Connection¶
An H2OConnection represents the latest active handle to a cloud. No more than a single H2OConnection object will be active at any one time.
- class h2o.connection.H2OConnection(ip='localhost', port=54321, size=1, start_h2o=False, enable_assertions=False, license=None, max_mem_size_GB=None, min_mem_size_GB=None, ice_root=None, strict_version_check=False)[source]¶
Bases: object
H2OConnection is a class that represents a connection to the H2O cluster. It is specified by an IP address and a port number.
Objects of type H2OConnection are not instantiated directly!
This class contains static methods for performing the common REST methods GET, POST, and DELETE.
Expr¶
This module contains code for the lazy expression DAG.
- class h2o.expr.Expr(op, left=None, rite=None, length=None)[source]¶
Bases: object
- Expr objects have a few different flavors:
- A pending to-be-computed BigData expression. Does _NOT_ have a Key
- An already computed BigData expression. Does have a key
- A small-data computation, pending or not.
Pending computations point to other Expr objects in a DAG of pending computations. Pointed at by at most one H2OVec (during construction) and no others. If that H2OVec goes dead, this computation is known to be an internal temp, used only in building other Expr objects.
- dim()[source]¶
Eagerly evaluate the Expr. If it’s an H2OFrame, return the number of rows and columns.
Returns: The number of rows and columns in the H2OFrame as a list [rows, cols].