class: center, middle # Machine Learning 2016 ## Setup and Introduction --- # Content 1. Installing an Emulator 2. Downloading and Importing the Virtual Machine 3. Downloading the first assignment from ILIAS 4. Starting an interactive Python notebook 5. Using Daphne to hand in assignments 6. Using your own OS --- # Installing an Emulator For your convenience we provide a Virtual Machine that has all requirements included. To run it you will need a virtualization software like - [VirtualBox](https://www.virtualbox.org/) - [VMware Workstation Player](http://www.vmware.com/) - [QEMU](http://wiki.qemu.org/Main_Page) We will walk you through the process of setting everything up using VirtualBox, but the process is fairly simple and should be similar for any other choice. Please follow the instruction on how to install VirtualBox [here](https://www.virtualbox.org/manual/ch02.html). --- # Downloading und Importing the Virtual Machine After installing the emulator, download the virtual appliance [here](http://aad.informatik.uni-freiburg.de/~sfalkner/ml2016/ML2016_v2.ova). Follow the [discription](https://www.virtualbox.org/manual/ch01.html#ovf) on how to import it. Once this is done, you can run the VM. In case you encounter the following error: "Implementation of the USB 2.0 controller not found!", try to deactivate the USB 2.0 controller in the settings. Several students encountered a problem where the VM would start, but boot into an unresponsive state with a blank screen. Please make sure that "Virtualization" is enabled in your PC's BIOS. Please contact us, if you cannot resolve this problem by yourself. --- # Welcome to your new VM
When the VM booted, you should see the screen above. The password file contains the username "student" and the password "ml2016" for the account. --- # Downloading the first assignment Before you can work on the first assignment, you need to download it from the course's [ILIAS page](https://ilias.uni-freiburg.de/ilias.php?ref_id=569134&cmdClass=ilrepositorygui&cmdNode=rn&baseClass=ilrepositorygui). On this page, you will find (among other things): - all [Assignments](https://ilias.uni-freiburg.de/ilias.php?ref_id=573459&cmd=view&cmdClass=ilrepositorygui&cmdNode=rn&baseClass=ilrepositorygui), i.e., all the Jupyter notebooks and data files needed - a [Forum](https://ilias.uni-freiburg.de/ilias.php?ref_id=569218&cmd=showThreads&cmdClass=ilrepositorygui&cmdNode=rn&baseClass=ilrepositorygui) where you can post questions answered by your fellow students, the tutors or the professors themselves - a [Wiki](https://ilias.uni-freiburg.de/goto.php?target=wiki_569221_Welcome) with additional information and a student driven leaderboard for individual assignments --- # Downloading the first assignment Under Assignments, you will be able to download all files at once:
Please remember to download this inside the VM. Unzip the file into a directory of your choice. --- # Starting an interactive Python notebook
Click on the second symbol on the left to open a terminal: --- # Starting an interactive Python notebook
Type 'jupyter-notebook' and hit 'return' to start your interactive Jupyter notebook. Click open and navigate to the assignment 1 folder created earlier. Open the file "IntroductionToJupyterNotebooks.ipynb". --- # Submitting to Daphne - first [log into Daphne](https://daphne.informatik.uni-freiburg.de/ss2016/MachineLearning/) using your RAS account - open a terminal and checkout the two repositories using the following command - svn co https://daphne.informatik.uni-freiburg.de/ss2016/MachineLearning/svn/< your account name\> - put your solution into the correct folder and add it to the repository via - svn add < filename > - svn commit -m "< short description of what you submitted>" - You can check [Jenkins](https://daphne.informatik.uni-freiburg.de/jenkins/) to see the status of your submission --- # Using your own Ubuntu Feel free to do the assignments without the provided VM. We will assume you already have a modern browser like chrome or firefox installed. If you are running a Ubuntu, you can execute the following commands in a terminal to install all necessary packages for the assignments: - sudo apt-get update - sudo apt-get install build-essential python3-dev python3-pip python3-numpy python3-scipy python3-matplotlib - pip3 install scikit-learn --user - pip3 install jupyter --user - cd ; ./local/bin/jupyter-notebook On Windows and MacOS, we recommend using [Anaconda](https://www.continuum.io/downloads). All required python packages should be shipped with this python distribution. To get subversion (SVN) going, you could use [SmartSVN](http://www.smartsvn.com/purchase) (Windows and MacOS), or [TortoiseSVN](https://tortoisesvn.net/) (Windows only). Please note that we will not be able to provide the same level of support to your individual setup compared to our VM.