-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helper function scripts, cluster quality assessment, and PCA elaboration #39
Helper function scripts, cluster quality assessment, and PCA elaboration #39
Conversation
…26-machine-learning-novice-sklearn into gh-pages
@qualiaMachine I've been trying to merge this alongside pr #40 but there are places where both have changed the same content that require (quite a lot of) manual conflict resolutions. Can we reopen this or if you have a newer version then perhaps put it in as a new PR? |
No worries, @colinsauze ! I think this was one of my earlier pull requests, and I regret how I squeezed so much into this one request! We can let it go for now. I'm prepping to teach this again next week, though, and might send along a couple new pull requests with some focused suggestions. |
Several additions here that are intertwined due to the addition of some helper functions. In case it is helpful, these changes can also be reviewed from my forked repo's website.
Added two helper scripts to reduce some of the more tedious coding (e.g., plotting code, coding least squares from scratch, etc.). These scripts are found in the code folder: clustering_helper_functions.py and regression_helper_functions.py. Functions from these files are imported throughout the regression, sklearn, and clustering episodes.
Edited setup file to link to helper functions
Regression episode
a. Reference/use helper functions
b. Added an exercise that clarifies parameters vs hyperparameters
c. Added an exercise that reinforces the concept that models will fit their training data
Sklearn episode
a. Reference helper functions
b. Added some text explaining polynomial features
Clustering episode
a. Reference helper functions
b. Add cluster quality assessment section
Dimensionality reduction episode
a. Added some code/text to demonstrate how PCA compresses data (% of total variance plots)
b. Added a section that explores the efficacy of PCA when fitting data to a decision tree. This section probably only makes sense to cover if classification and decision trees are covered beforehand. I didn't have time to add a classification episode, but it's on my to-do list!