Programming tools info
Johannes Verwijnen Teemu Pulkkinen
Introduction to Machine Learning, Autumn 2014
MATLAB/Octave/R at the department
When working in the computer halls MATLAB is only available when booting to Windows. On Linux use Ukko nodes (see next slide).
Octave is available on Linux systems, just type octavein the terminal
R is available on Linux systems, just typeRin the terminal
MATLAB/Octave/R from home/own computer
you can run MATLAB, Octave or R on an Ukko node (needs CS account, minor students can get one from tktl-luvat [at]
cs.helsinki.fi - state your username in the email) ssh to shell.cs.helsinki.fi
check for available free nodes at
http://www.cs.helsinki.fi/ukko/hpc-report.txt ssh to chosen node
runmatlab/octave/R
download/install Octave or R on your home machine and run it locally
IDE-like environments exist for Octave (Octave-gui) and R (RStudio)
A Student version of MATLAB sets you back about 35AC
A VERY short MATLAB/Octave introduction
start by using the helpfunction some helpful links
http://www.mathworks.se/help/matlab/
https:
//www.gnu.org/software/octave/doc/interpreter/
tutorials
https://www.mathworks.se/academia/student_center/
tutorials/mltutorial_launchpad.html?confirmation_
page(free, requires registration)
http://www.math.utah.edu/lab/ms/matlab/matlab.html https://en.wikibooks.org/wiki/Octave_Programming_
Tutorial
http://www.youtube.com/playlist?list=
PLj-MRhZ0CQchBj-jb2y9XWs34pV9Xo1hP(part of Andrew Ng’s Machine Learning course)
A VERY short R introduction
start by using the help()function some helpful links
http://cran.r-project.org/manuals.html https:
//www.gnu.org/software/octave/doc/interpreter/
tutorials
http://www.cyclismo.org/tutorial/R/
https:
//www.datacamp.com/courses/introduction-to-r http://heather.cs.ucdavis.edu/~matloff/r.html http://www.rexamples.com/
Returning your code exercises
try to create separate functions for each (sub)question remember to try to vectorize operations instead of using for-loops
seehttp://www.mathworks.se/help/matlab/matlab_
prog/vectorization.htmlor http://www.noamross.net/
blog/2014/4/16/vectorization-in-r--why.html
zip your solution .m/.R -files and send them as an attachment together with the pdf of your pen&paper exercises
No other programming languages are allowed without prior agreement with the assistant (Johannes)