May 2018
Beginner to intermediate
356 pages
9h 25m
English
Let's take a moment to set up our development environment for this algorithm. The environment will be as described in Chapter 1, Exploring the Potential of JavaScript, however, we'll run through the entire process here.
First, create a new folder for this project. I've named the folder Ch4-kmeans. Create a subfolder called src inside Ch4-kmeans.
Next, add a file called package.json to the Ch4-kmeans folder. Add the following content to the file:
{ "name": "Ch4-kmeans", "version": "1.0.0", "description": "ML in JS Example for Chapter 4 - kmeans", "main": "src/index.js", "author": "Burak Kanber", "license": "MIT", "scripts": { "build-web": "browserify src/index.js -o dist/index.js -t [ babelify --presets [ env ] ]" ...Read now
Unlock full access