small-mnist

small mnist dataset

Usage no npm install needed!

<script type="module">
  import smallMnist from 'https://cdn.skypack.dev/small-mnist';
</script>

README

Small mnist dataset

600 training data and 100 test data of the mnist dataset. Meant to be small for quick demonstrations.

Install

npm install --save small-mnist

How to load

import { test, train } from 'small-mnist';

type of test and train is:

{
    "input": number[];      // monochrome pixels of e.g. letter 2 (1 or 0)
    "output": number[];     // e.g. [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] (means 2)
    "label": number;        // e.g. 2
}[];

Input and output fields are in binary label not.

Author

Dugagjin Lashi

License

MIT