h2oai / h2o-3

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.
http://h2o.ai
Apache License 2.0
6.78k stars 1.99k forks source link

Make ddply deprecated #11680

Open exalate-issue-sync[bot] opened 1 year ago

exalate-issue-sync[bot] commented 1 year ago

Use groupBy instead.

Here is the code snippet:

irisPath <- system.file("extdata", "iris_wheader.csv", package = "h2o") iris.hex <- h2o.uploadFile(path = irisPath, destination_frame = "iris.hex") (res <- h2o.group_by(data = iris.hex, by = "class", sd("sepal_len")) )

And this code is equivalent to - fun <- function(df) { sd(df[,1],na.rm = T) } res <- h2o.ddply(iris.hex, "class", fun)

hasithjp commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-4801 Assignee: New H2O Bugs Reporter: Michal Malohlava State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A