Skip to content

Instantly share code, notes, and snippets.

@naiborhujosua
Created October 26, 2020 15:32
Show Gist options
  • Save naiborhujosua/582b207e1d1af30647c4fb47ca769aaf to your computer and use it in GitHub Desktop.
Save naiborhujosua/582b207e1d1af30647c4fb47ca769aaf to your computer and use it in GitHub Desktop.
# Complete the lists below
ranks = [10, 20, 30, 40]
maxIters = [10, 20, 30, 40]
regParams = [.05, .1, .15]
alphas = [20, 40, 60, 80]
@naiborhujosua
Copy link
Author

You're now going to build your first implicit rating recommendation engine using ALS. To do this, you will first tell Spark what values you want it to try when finding the best model.

Four empty lists are provided below. You will fill them with specific values that Spark can use to build several different ALS models. In the next exercise, you'll tell Spark to build out these models using the lists below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment