Skip to content
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

Conversation

qualiaMachine
Copy link
Collaborator

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.

  1. 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.

  2. Edited setup file to link to helper functions

  3. 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

  4. Sklearn episode
    a. Reference helper functions
    b. Added some text explaining polynomial features

  5. Clustering episode
    a. Reference helper functions
    b. Add cluster quality assessment section

  6. 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!

@colinsauze
Copy link
Member

@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?

@qualiaMachine
Copy link
Collaborator Author

qualiaMachine commented Nov 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants