Renaming H2O data frame column name in R

Following is the code snippet showing how you can rename a column in H2O data frame in R: > train.hex <- h2o.importFile(“https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_wheader.csv”)   |======================================================| 100% > train.hex   sepal_len sepal_wid petal_len petal_wid class 1 5.1 3.5 1.4 0.2 Iris-setosa 2 4.9 3.0 1.4 0.2 Iris-setosa 3 4.7 3.2 1.3 0.2 Iris-setosa 4 4.6 3.1 1.5 […]

Continue reading


Filtering H2O data frame on multiple fields of date and int type

Lets create an H2O frame using h2o.create_frame API: df = h2o.create_frame(time_fraction = .1,rows=10, cols = 10) Above will create a frame of 10 rows and 10 columns and based on time_fraction values 0.1 (1 out of 10 provided columns) will be date/time columns. The data frame looks as below: Here are few example filtering scripts: […]

Continue reading