1. Learn
  2. /
  3. Courses
  4. /
  5. Building Recommendation Engines with PySpark

Exercise

Extracting parameters

You've now tested 192 different models on the msd dataset, and you found the best ROEM and its respective model (model 38).

You now need to extract the hyperparameters. The model_list you created previously is provided here. It contains all 192 models you generated. Use the instructions below to extract the hyperparameters.

Instructions

100 XP
  • Use list slicing to extract model 38 from the model list. Call this model best_model.
  • Use the .get____() method to extract the following hyperparameter values:
    • Rank
    • MaxIter
    • RegParam
    • Alpha