diff --git a/index.html b/index.html index b097c1e..345d20b 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@

This demo is a simple neural network that recognizes handwritten letters. - The site and the neural network is written in pure js, so the program produces a prediction quite quickly + The site and the neural network is written in pure js, so the program produces a prediction quite fast

diff --git a/src/favicon.png b/src/favicon.png index d93f739..43ac978 100644 Binary files a/src/favicon.png and b/src/favicon.png differ diff --git a/src/index.js b/src/index.js index 55b2a06..687d148 100644 --- a/src/index.js +++ b/src/index.js @@ -137,7 +137,6 @@ ctx.fillText('Loading the model', CANVAS_SIZE / 2, CANVAS_SIZE / 2); // Set the line color for the canvas. ctx.strokeStyle = '#212121'; - function argsort(arr) { let result = [...Array(arr.length).keys()]; result.sort((lhs, rhs) => arr[rhs] - arr[lhs]); @@ -226,7 +225,6 @@ function bodyMouseOut(event) { } } - canvas.addEventListener('mousedown', canvasMouseDown); canvas.addEventListener('mousemove', canvasMouseMove); document.body.addEventListener('mouseup', bodyMouseUp);