LoslegenKostenlos loslegen

Machine learning functions

In the last chapter, you saw some of the feature transformation functionality of Spark MLlib. If that library were a meal, the feature transformations would be a starter; the main course is a sumptuous selection of machine learning modeling functions! These functions all have names beginning with ml_, and have a similar signature. They take several arguments, including a tibble, a formula specifying the relationship between variables, a string naming the features, a string containing the labels and more.

Supported machine learning functions include linear regression and its variants, tree-based models (ml_decision_tree_classifier()), and a few others. You can see the list of all the machine learning functions using ls().

ls("package:sparklyr", pattern = "^ml")

What arguments do all the machine learning model functions take?

Diese Übung ist Teil des Kurses

Introduction to Spark with sparklyr in R

Kurs anzeigen

Interaktive Übung

Setze die Theorie in einer unserer interaktiven Übungen in die Praxis um

Übung starten