Materials for the Machine Learning in Javascript Workshop by Expero inc
Given at the M3 Machine Learning Conference, London, Oct 2017
For an overview of the content see the course outline
The first part of the course will be run in Jupyter notebooks. Jupyter is a REPL like interface embedded in a web page which is good for experimentation and exploratory development.
It's a standard tool in python for data science. Using it means we install a python distribution even though we are working in javascript. If you are learning ML some python is likely in your future anyways so we can maybe live with that.
- Install an IPython distribution
- I recomend installing Anaconda 3.6 it is heayweight but that is the distibution I have tested with and if you are interested in moving on apply some of the things you have learnt after the conference in python too, then this is a good starting point.
- Install node.js we are using v8.5.x.
- If you already have node installed and don't want ot mess with your local environement install
nvm
and install node v8.5.x from there.- on Mac nvm
- on Windows nvm-windows
- Install the
jp-babel
variant of the IJavascript kernelnpm install -g jp-babel
- if you are running on linux check out the instructions on this page
- Install Javascript dependencies
- run
npm install
in the repo root folder :)
- Start the notebook
- run
jp-babel-notebook
in the repo root folder - a web browser should pop up showing the Jupyter browser / tree view of the current folder.
- From Jupyter, open the smoke test notebook
-
When the notebook opens you should be able to see the
jp-babel
javascript kernel loaded in the top left corner. -
If not, go to
Kernel Menu
>Change Kernel
and select thejp-babel
option and follow the prompts. -
In the
Cell Menu
, selectRun All
. Each cell should execute and if all dependencies are properly installed we shouldn't see any errors.
...