CS 686-02 Spring, 2018
Lab 1
Practice python OOP by completing the implementation. Details on Canvas. Files are as follows:
Exercise: Logistic Regression (Not a Lab, but do it anyway):
Code for 2-class Logistic Regression:
- classifier.py -- the base class for all classifiers
- logistic_regression.py -- implementation of logistic regression in python, mostly from Machine Learning in Action
- test_logistic_regression_vs_synthetic_data.py -- functions to read and plot the data and the best-fit line from logistic regression
Data for 2-class Logistic Regression
- testSet.txt -- a synthetic dataset
- verify.txt -- a subset of the above, for demo only
Exercise: Decision Tree (Not a Lab, but do it anyway):
- animals.csv -- the data, inspired by Zoo animals