public class H2OHelper extends Object
| Constructor and Description |
|---|
H2OHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Matrix |
allreduceBlock(H2ODrm drmA,
Object bmfn,
Object rfn) |
static Vector |
colMeans(water.fvec.Frame frame)
Calculate Means of elements in a column, and return as a Vector.
|
static Vector |
colSums(water.fvec.Frame frame)
Calculate Sums of elements in a column, and return as a Vector.
|
static H2ODrm |
drmFromMatrix(Matrix m,
int minHint,
int exactHint)
Ingest a Mahout Matrix into an H2O DRM.
|
static H2ODrm |
emptyDrm(long nrow,
int ncol,
int minHint,
int exactHint)
Create an empty (zero-filled) H2O DRM.
|
static water.fvec.Frame |
emptyFrame(long nrow,
int ncol,
int minHint,
int exactHint)
Create an empty (zero-filled) H2O Frame efficiently.
|
static water.fvec.Frame |
emptyFrame(long nrow,
int ncol,
int minHint,
int exactHint,
water.fvec.Vec.VectorGroup vg)
Create an empty (zero-filled) H2O Frame efficiently.
|
static boolean |
isSparse(water.fvec.Frame frame)
Predicate to check if data is sparse in Frame.
|
static water.fvec.Vec |
makeEmptyStrVec(water.fvec.Vec template)
The following two methods: vecChunkLen and makeEmptyStrVec
are h2o-0.1.25 specific.
|
static Matrix |
matrixFromDrm(H2ODrm drm)
Create a Mahout Matrix from a DRM.
|
static Vector |
nonZeroCnt(water.fvec.Frame frame)
Count non-zero elements in all columns, and return as a Vector.
|
static double |
sumSqr(water.fvec.Frame frame)
Calculate Sum of squares of all elements in the DRM.
|
static int |
vecChunkLen(water.fvec.Vec template,
int chunk) |
public static boolean isSparse(water.fvec.Frame frame)
frame - Frame storing matrix data.public static Matrix matrixFromDrm(H2ODrm drm)
drm - DRM object to create Matrix from.public static Vector colMeans(water.fvec.Frame frame)
frame - Frame backing the H2O DRM.public static Vector colSums(water.fvec.Frame frame)
frame - Frame backing the H2O DRM.public static double sumSqr(water.fvec.Frame frame)
frame - Frame backing the H2O DRM.public static Vector nonZeroCnt(water.fvec.Frame frame)
frame - Frame backing the H2O DRM.public static H2ODrm drmFromMatrix(Matrix m, int minHint, int exactHint)
m - Mahout Matrix to ingest data from.minHint - Hint for minimum number of partitions in created DRM.exactHint - Hint for exact number of partitions in created DRM.public static water.fvec.Frame emptyFrame(long nrow,
int ncol,
int minHint,
int exactHint)
nrow - Number of rows in the Frame.ncol - Number of columns in the Frame.minHint - Hint for minimum number of chunks per column in created Frame.exactHint - Hint for exact number of chunks per column in created Frame.public static water.fvec.Frame emptyFrame(long nrow,
int ncol,
int minHint,
int exactHint,
water.fvec.Vec.VectorGroup vg)
nrow - Number of rows in the Frame.ncol - Number of columns in the Frame.minHint - Hint for minimum number of chunks per column in created Frame.exactHint - Hint for exact number of chunks per column in created Frame.vg - Shared VectorGroup so that all columns are similarly partitioned.public static water.fvec.Vec makeEmptyStrVec(water.fvec.Vec template)
public static int vecChunkLen(water.fvec.Vec template,
int chunk)
public static H2ODrm emptyDrm(long nrow, int ncol, int minHint, int exactHint)
nrow - Number of rows in the Frame.ncol - Number of columns in the Frame.minHint - Hint for minimum number of chunks per column in created Frame.exactHint - Hint for exact number of chunks per column in created Frame.Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.