# CS360 Lab 3: Polynomial Regression

## Overview

Goals:

• To become more familiar with vector and matrix operations in code
• To investigate two different approaches to fitting regression models
• To think about the pros and cons of more flexible models

Note: the instructions for both parts are the linked PDFs below.

## Pair work (work with your randomly assigned partner)

Begin by working through the small stochastic gradient descent (SGD) example (a continuation from Handout 5) with your partner. Make sure that each you understand the steps and the algorithm (explaining a concept to another person can help solidify your own understanding).

Lab 3 introduction (pair work)

## Lab 03 (individual work from here)

Find your git repo for this lab assignment by navigating to your lab03 directory:

\$ cd cs360/lab03/

You should have the following folders/files:

• code: PolynomialRegression.py, run_regression.py
• data : regression_train.csv, regression_test.csv (in the data folder)
• writeup: writeup.tex or README.md (choose one format for your writeup)

Lab 3 instructions