mnist-dataset
✍️ Yann LeCun's MNIST handwritten digit dataset, made available to Node.js. This library contains all of the utilities you need to download and parse the raw unfiltered dataset, which is expressed as JSON arrays. It uses fs to cache to your system's tmpdir()
so that you don't have to keep downloading the dataset between successive executions of your software.
🚀 Getting Started
Using npm
:
npm install --save mnist-dataset
Using yarn
:
yarn add mnist-dataset
✍️ Usage
; async { const trainingImages = await ; // [[Number]] (i.e. [[0, 0, 0, ...], [0, 0, 0, ...], ...]) const trainingLabels = await ; // [[Number]] (i.e. [[7], [2], ...]) const toString = ...Array28 ; const number7 = trainingImages; console; };