1. Go to this page and download the library: Download rafaelglikis/mnist-reader library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rafaelglikis / mnist-reader example snippets
use MnistReader\MnistReader;
use MnistReader\Image;
$mnistReader = new MnistReader("data");
try {
$mnistReader->loadData();
} catch (Exception $e){
print $e->getMessage() . "\n";
die();
}
$images = $mnistReader->getImages();