2015-09-22 16:28:18 +02:00
|
|
|
# mlpractical
|
2015-09-22 17:53:46 +02:00
|
|
|
## Machine Learning Practical (INFR11119)
|
|
|
|
|
|
|
|
To run the notebooks (and later the code you are going to write within this course)
|
|
|
|
you are expected to have installed the following packages:
|
|
|
|
|
|
|
|
python 2.7+
|
2015-09-22 18:08:07 +02:00
|
|
|
|
2015-09-22 17:53:46 +02:00
|
|
|
numpy (anything above 1.6, 1.9+ recommended, optimally
|
|
|
|
compiled with some BLAS library [MKL, OpenBLAS, ATLAS, etc.)
|
2015-09-22 18:08:07 +02:00
|
|
|
|
2015-09-22 17:53:46 +02:00
|
|
|
scipy (optional, but may be useful to do some tests)
|
2015-09-22 18:08:07 +02:00
|
|
|
|
2015-09-22 17:53:46 +02:00
|
|
|
matplotlib (for plotting)
|
2015-09-22 18:08:07 +02:00
|
|
|
|
2015-09-22 17:53:46 +02:00
|
|
|
ipython (v3.0+, 4.0 recommended)
|
2015-09-22 18:08:07 +02:00
|
|
|
|
2015-09-22 17:53:46 +02:00
|
|
|
notebook (notebooks are in version 4.0)
|
|
|
|
|
|
|
|
You can install them straight away on your personal computer,
|
|
|
|
there is also a notebook tutorial (00_Introduction) on how to
|
|
|
|
do this on DICE, and what configuration you are expected to have.
|
|
|
|
For now, it suffices if you get the software working on your
|
|
|
|
personal computers so you can start ipython notebook server
|
|
|
|
and open the inital introductory tutorial (which will be make
|
|
|
|
publicitly available next Monday).
|
|
|
|
|
2015-09-22 18:08:07 +02:00
|
|
|
### Installing the software on personal computers
|
|
|
|
|
|
|
|
#### On Windows:
|
2015-09-22 17:53:46 +02:00
|
|
|
|
2015-09-22 18:08:07 +02:00
|
|
|
Download and install the Anaconda package
|
|
|
|
(https://store.continuum.io/cshop/anaconda/)
|
2015-09-22 17:53:46 +02:00
|
|
|
|
2015-09-22 18:08:07 +02:00
|
|
|
#### On Mac (use macports):
|
2015-09-22 17:53:46 +02:00
|
|
|
|
2015-09-22 18:09:29 +02:00
|
|
|
<ul>
|
|
|
|
<li>Install macports following instructions at https://www.macports.org/install.php</li>
|
|
|
|
<li>Install the relevant python packages in macports
|
|
|
|
<ul>
|
|
|
|
<li> sudo port install py27-scipy +openblas </li>
|
|
|
|
<li> sudo port install py27-ipython +notebook </li>
|
|
|
|
<li> sudo port install py27-notebook </li>
|
|
|
|
<li> sudo port install py27-matplotlib </li>
|
|
|
|
<li> sudo port select --set python python27 </li>
|
|
|
|
<li> sudo port select --set ipython2 py27-ipython </li>
|
|
|
|
<li> sudo port select --set ipython py27-ipython </li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
2015-09-22 17:53:46 +02:00
|
|
|
|
|
|
|
Also, make sure that your $PATH has /opt/local/bin before /usr/bin
|
|
|
|
so you pick up the version of python you just installed
|
|
|
|
|
2015-09-22 18:08:07 +02:00
|
|
|
#### On DICE (we will do this during the first lab)
|
2015-09-22 17:53:46 +02:00
|
|
|
|
2015-09-22 18:08:07 +02:00
|
|
|
### Setting up the repository
|
2015-09-22 17:53:46 +02:00
|
|
|
|
|
|
|
Assuming ~/mlpractical is a target workspace you want to use during
|
|
|
|
this course (where ~ denotes your home path, i.e. /home/user1).
|
|
|
|
To start, open the terminal and clone the github mlpractical
|
|
|
|
repository to your local disk:
|
|
|
|
|
|
|
|
git clone https://github.com/CSTR-Edinburgh/mlpractical.git
|
|
|
|
|
|
|
|
(Note: you can do it from your git account if you have one as the
|
|
|
|
above just clone the repo as anonymous user, though it does not
|
2015-09-22 18:08:07 +02:00
|
|
|
matter at this point, as you probably will not submit pull requests)
|
2015-09-22 17:53:46 +02:00
|
|
|
|
|
|
|
Naviagate to the checked out directory by typing cd ~/mlpractical and type:
|
|
|
|
|
|
|
|
ipython notebook
|
|
|
|
|
|
|
|
This should start notebook server and open the browser with the page
|
|
|
|
listing files/subdirs in the current directory.
|
|
|
|
|
2015-09-22 18:08:07 +02:00
|
|
|
To update the repository (for example, on Monday),
|
|
|
|
enter ~/mlpractical and type git pull.
|
2015-09-22 17:53:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|