In the following, we assume that you downloaded the files:
and copied them in your R working folder.
We also assume that you have R
installed with h5
package.
Start R, and then:
library(h5)
fp <- h5file("train.h5", "r")
x = fp["time_series"]
y = fp["labels"]
dim(x)
## [1] 180 51 24
dim(y)
## [1] 180
Now, let’s have a look at test data:
fp <- h5file("test_task1.h5", "r")
x = fp["time_series"]
dim(x)
## [1] 180 51 24
Of course, something is missing:
y = fp["labels"]
## Error in eval(expr, envir, enclos): H5Gcreate failed in createGroup