H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
We can convert the species column of the iris dataset to string (what's the method for doing that?) and show how to use h2o.sub() using that example, or
We can use this example:
{code}
library(h2o)
h2o.init()
We don't have any examples in the [Replacing Values section|http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-munging/replacing-values.html] of the User Guide of how to replace a string in R or Python using
h2o.sub()
and the Python equivalent.Two options:
h2o.sub()
using that example, orvoting.url <- "http://archive.ics.uci.edu/ml/machine-learning-databases/voting-records/house-votes-84.data" feature.cols <- paste0("vote", 1:16) voting.data.raw <- h2o.importFile(path = voting.url, col.names = c("party", feature.cols), col.types = rep("string", 17))
newdf <- h2o.sub("\\?", "n", x = voting.data.raw) {code}