h2o.cumprod function

Return the cumulative product over a column or across a row

Return the cumulative product over a column or across a row

h2o.cumprod(x, axis = 0)

Arguments

  • x: An H2OFrame object.
  • axis: An int that indicates whether to do down a column (0) or across a row (1).

Examples

## Not run: library(h2o) h2o.init() frame <- h2o.createFrame(rows = 6, cols = 2, categorical_fraction = 0.0, missing_fraction = 0.7, seed = 123) h2o.cumprod(frame, 1) ## End(Not run)

See Also

cumsum for the base R implementation, cumprod().

  • Maintainer: Tomas Fryda
  • License: Apache License (== 2.0)
  • Last published: 2024-01-11