Aan de slagGa gratis aan de slag

Get RMSE

Now that you know how to build a model and generate predictions, and have an evaluator to tell us how well it predicts ratings, we can calculate the RMSE to see how well an ALS model performed. We'll use the evaluator that we built in the previous exercise to calculate and print the rmse.

Deze oefening maakt deel uit van de cursus

Building Recommendation Engines with PySpark

Cursus bekijken

Oefeninstructies

  • Call the .evaluate() method on our evaluator to calculate our RMSE on the test_predictions dataframe. Call the result RMSE.
  • Print the RMSE

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Evaluate the "test_predictions" dataframe
RMSE = evaluator.____(____)

# Print the RMSE
print (____)
Code bewerken en uitvoeren