Category: Uncategorized

  • Code and figures posted

    I’ve pushed yesterday’s code to the class repo (see sec_8_1_1.py, sec_8_1_1_cv.py, sec_8_1_2.py, and sec_8_1_2_cv.py). Also, here are the diagrams we studied in class (click to expand):

  • Bree’s question, cont.

    I got this very illuminating response from one of my Stats Bros: The bias/variance inherent in the PC is “baked in” before there is any model for the y variable. I think you want to think of the PC part as just a different set of x-values — a different measurement of the data —…

  • ChatGPT’s answer to Bree’s brilliant question

    You may remember that Bree stymied me in class last week when she asked (Stephen’s paraphrase): “we’re attempting to use some number M of principal components < p, which will help us get a more parsimonious model with fewer parameters to fit. However, to compute the loadings for the principal components, aren't we fitting coefficients…

  • Quiz #4 posted!

    As promised, quiz #4 has been posted to Canvas, and is due Friday at midnight. It’s timed at 50 minutes, and has all the ordinary rules. Btw, you already know all you need to know to take this quiz: you do not need to wait for Thursday’s class.

  • To clarify: “the next class” in spring semester

    To reiterate from various lectures throughout the semester, the spring class I’ve been talking about which will essentially be a neural-net-infused continuation of our class is: DATA 470D5: Machine Learning (Its CRN, if you care about such things, is 22448.) In the near future, this class will (curriculum approval process pending) be offered as a…

  • Names competition final leaderboard

    The competition has ended and the final leaderboard results are posted! Props to Eden&Belen, Molly, and Eraj, our top three finishers!

  • Homework #4 posted!

    Homework #4, a return to your own semester data set, has been posted! It is due Nov 7th at midnight. It involves applying a number of techniques we’ve explored in class to your own data, and you are of course welcome to use anything you like in the class github repo to inspire or orient…

  • PCR/PCA code posted

    I’ve pushed the code from today’s class to the class github repo, including sec6_3.py which has the PCR/PCA code for the WNBA data set. Also, as I mentioned in class today, we’re definitely not going to have two responsive readings this semester (I’m still holding out hope for one) so I went ahead and gave…

  • Regularization in Logistic Regression

    I was reminded by a Kaggler today that although I showed you guys sample code to add regularization for linear regression (Lasso and Ridge) I never explained how to do this for classification (logistic regression). First off, fun fact: it turns out that sklearn’s LogisticRegression already uses regularization by default! Specifically, it uses L2 (ridge)…

  • The crazy PCA diagram

    Here’s the slide from today’s class: Also, I’ve pushed the English-vs-Spanish detector code (eng_span.py) and the pipeline imputation code (pipelines.py) to the class github repo.