Homework Assignments

The specific schedule of topics and due dates below is tentative, and may change as the course progresses.

# Due Description Problems Materials
1 9/19 Naive Bayes Spam Classification questions
template
Enron emails
2 9/26 ML & Bayesian Estimation questions
template
Gamma telescope
ROC Matlab script
3 10/03 Handwritten Digit Classification questions
templates
MNIST digits
4 10/10 Linear Regression questions
example
Motorcycle impact
bases: poly, rbf
5 10/17 Logistic Regression questions
template A
template B
plotClassifier script
Gamma telescope V2
Toy data: A, B, C
M 10/25 Midterm Exam (out 10/22)
6 10/31 Regularization & Sparsity questions
templates
Dorothea drug discovery
LogisticLossSimple script
7 11/07 Gaussian Processes,
Stochastic Gradients,
& Neural Networks
questions Pedestrian Detection
Online Digit Classification
Neural Networks
8 11/14 K-Means Clustering &
EM for Mixture Models
questions
template A
template B
MNIST digits and Word features
Rand index script
9 11/21 Hidden Markov Models questions
template
Alice in Wonderland
Text processing scipts
10 12/05 Collaborative Filtering via
Factor Analysis & EM Algorithm
questions Movie Rating via Factor Analysis
EM for Linear Regression
F 12/13 Final Exam (out 12/10)

Homework assignments combine mathematical derivations with programming exercises in Matlab. If you have questions, come to our office hours or email cs142tas-at-cs. To hand-in your solutions, which are due on Thursdays by 11:59pm, use the following procedure:

Signup
You will need a CS department computer account to submit your answers and access homework solutions. If this is your first CS course, the Sunlab consultants in CIT 143 can help you create an account. To submit your answers from outside the CIT building, you will need to remotely login via ssh or VPN. The Sunlab consultants can help with configuration.
Solve
Your answers to all questions, with the exception of Matlab source code, must be included in a single pdf document. Number your answers by question and part as in the handout, and be sure to include your full name and CS account username at the top of the first page. Result plots must be included as figures in the same pdf as your other answers, not as separate files. We strongly recommend, but do not require, that you use LaTeX to typeset your solutions. Please be clear, and make it easy for the graders to check your work!
Collaborate?
You may work on homework problems in groups, and discuss your work with each other. However, each student must program and write up their solutions independently. Include the names of any collaborators on the front page of your homework solutions. You may not directly copy solutions or code from other students, or from materials distributed in previous versions of this or other courses. You may not make your solutions available to other students: files in your home directory should not be world-readable, and you should not post your solutions to public websites.
Review
Change to the directory (cd) your work is in. When you list files (ls), the only files should be hw.pdf, and the Matlab source code you have written. The Matlab code does not need to be extensively documented, but it should be readably commented, and we may run it. You should not turn in any folders, and please do not turn in copies of externally supplied Matlab packages (like optimization toolboxes) that you have used without modification.
Submit
Execute /course/cs142/bin/cs142_handin hw?, replacing ? by the appropriate homework number. This has been tested to work, but if it doesn't for any reason, e-mail your solutions to cs142tas-at-cs with a full description of the problem, including any warning messages. Note that you can use the unix groups command to verify that you have been added to the cs142student group, as required by the handin script. If your handin is successful, your CS account (username@cs.brown.edu) will receive an email confirming the submission time. CS mail can be forwarded.
Late Submissions
Homework assignments are due on Thursdays by 11:59pm, and worth a maximum of 100 points. Your answers may be submitted up to 4 days late (before the following Monday at 11:59pm); after this point, solutions will be distributed, and handins will not be graded or receive credit. You may submit up to three late assignments without penalty. For each subsequent late assignment, 10 points will be deducted from the overall score.
The allotment of three "free" late submissions is designed to cover common conflicts such as personal or professional travel, other course or research deadlines, and religious holidays; additional extensions will not be granted in such cases. Exceptions to this policy are only given in unusual circumstances (such as family or medical emergencies), and any extensions must be requested in advance of the due date by e-mail to the instructor.
Solutions & Grading
Homework solutions will be posted in the course locker, and grades distributed via email. If you would like to dispute the points you received for some assignment, do so by emailing cs142tas-at-cs with a clear description of your concerns. We will then carefully regrade all parts of the disputed question: your score may go up, it may stay the same, or it may even go down. We will only handle grade changes via email, and the course staff will not discuss homework grading during office hours. If you have significant concerns about your scores, please arrange an individual meeting with the instructor.

Midterm and Final Exams

A take-home midterm exam will be distributed before 5:00pm on October 22, and due at 5:00pm on October 25. A take-home final exam will be distributed before 5:00pm on December 10, and due at 5:00pm on December 13. You must submit exam solutions to receive course credit. Late submissions are not allowed!

The overall length of both exams will be similar to that of a 3-hour, in-person exam. Additional time may be required to write up solutions for electronic submission, but we do not intend either exam to be a substantial time commitment.

Solve
Your answers to all questions must be included in a single pdf document. As for the homeworks, number your answers by question and part as in the handout, include plots in the same pdf as your other answers, and clearly show your work!
Work Independently
Unlike the homeworks, your work on the exams must be completely independent. You may not discuss problems with other students. You may not directly copy solutions from other students, or from materials distributed in previous versions of this or other courses. You may not make your solutions available to other students: files in your home directory should not be world-readable, and you should not post your solutions to public websites. You may ask the course staff to clarify questions, but they will give fewer explicit hints than they do for the homeworks.
Review and Submit
Change to the directory (cd) your work is in. When you list files (ls), the only file should be a single pdf document containing your solutions. Execute /course/cs142/bin/cs142_handin midterm to submit your midterm exam solutions, or /course/cs142/bin/cs142_handin final to submit your final exam solutions. If this doesn't work for any reason, e-mail your solutions to cs142tas-at-cs with a full description of the problem, including any warning messages.