Skip to content

Commit 1160e1e

Browse files
committed
Fix function used with Spark decision tree for regression
1 parent 3c8481e commit 1160e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/decision_tree_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ set_fit(
260260
interface = "formula",
261261
data = c(formula = "formula", data = "x"),
262262
protect = c("x", "formula"),
263-
func = c(pkg = "sparklyr", fun = "ml_decision_tree_classifier"),
263+
func = c(pkg = "sparklyr", fun = "ml_decision_tree_regressor"),
264264
defaults =
265265
list(seed = expr(sample.int(10 ^ 5, 1)))
266266
)

0 commit comments

Comments
 (0)