R/ml_model_als.R

Defines functions new_ml_model_als

new_ml_model_als <- function(pipeline_model,
                             formula,
                             dataset) {
  m <- new_ml_model_recommendation(
    pipeline_model, formula,
    dataset = dataset,
    class = "ml_model_als"
  )

  m$`.jobj` <- spark_jobj(m)

  m
}

Try the sparklyr package in your browser

Any scripts or data that you put into this service are public.

sparklyr documentation built on Nov. 2, 2023, 5:09 p.m.