VS265: Homework assignments Fall2012: Difference between revisions

From RedwoodCenter
Jump to navigationJump to search
Line 47: Line 47:
   In [3]: d.keys()
   In [3]: d.keys()
   Out[3]: ['oranges2', 'apples2', 'apples', 'oranges']
   Out[3]: ['oranges2', 'apples2', 'apples', 'oranges']
==== Lab #4, due Wednesday, October 3 at beginning of class ====
* [http://redwood.berkeley.edu/vs265/lab4.pdf lab4.pdf]
Matlab code are as separate files below.
* [http://redwood.berkeley.edu/vs265/lab4/data2d.mat data2d.mat]
* [http://redwood.berkeley.edu/vs265/lab4/faces2.mat faces2.mat]
* [http://redwood.berkeley.edu/vs265/lab4/hebb.m hebb.m]
* [http://redwood.berkeley.edu/vs265/lab4/eigmovie.m eigmovie.m]
''For Python you can use ''
* [http://redwood.berkeley.edu/vs265/lab4/data2d.npz data2d.npz] (see previous assignments above for how to read this in)
* [http://redwood.berkeley.edu/vs265/lab4/faces2.npz faces2.npz]
* [http://redwood.berkeley.edu/vs265/lab4/hebb.txt hebb.py]
* [http://redwood.berkeley.edu/vs265/lab4/eigmovie.txt eigmovie.py]

Revision as of 04:13, 27 September 2012

Students are encouraged to work in groups, but turn in assignments individually, listing the group members they worked with.

Submission instructions: email both a PDF of your solutions as well as your code (.m or .py files) as attachments to:

   rctn.org vs265 (vs265 should be out front)

You can hand in a paper copy of your solutions before class, but you still have to email your code to the address above before the assignment is due.

Resources

Matlab

Amir, the past GSI for the course says "There is a guide to Matlab on the web by Kevin Murphy which is really excellent. I think it would be great for the VS265 students: http://code.google.com/p/yagtom/"

Python

Fernando Perez at the Brain Imaging Center has an excellent set of resources on Python for scientific computing. You will likely find the "Starter Kit" particularly useful.

Assignments

Lab #1, due Wednesday, September 5th at beginning of class

Lab #2, due Wednesday, September 19th at beginning of class

for Python: either ...

  In [1]: import scipy.io
  In [2]: d = scipy.io.loadmat("data.mat")
  In [3]: X,O = d['X'],d['O']

or use data.npz

  In [1]: import numpy as np
  In [2]: d = np.load('data.npz')
  In [3]: X,O = d['X'],d['O']

Lab #3, due Wednesday, Sept. 26 at beginning of class

For Python you can use apples-oranges.npz

  In [1]: import numpy as np
  In [2]: d = np.load('apples-oranges.npz')
  In [3]: d.keys()
  Out[3]: ['oranges2', 'apples2', 'apples', 'oranges']

Lab #4, due Wednesday, October 3 at beginning of class

Matlab code are as separate files below.

For Python you can use