Model Predictions with Spark DataFrames

Given a ml_model fit alongside a new data set, produce a new Spark DataFrame with predicted values encoded in the "prediction" column.

sdf_predict(object, newdata, ...)

Arguments

object, newdata

An object coercable to a Spark DataFrame.

...

Optional arguments; currently unused.

See also

Other Spark data frames: sdf_copy_to, sdf_partition, sdf_register, sdf_sample, sdf_sort