-
classifierclass_usage.ipynbis a jupyter-notebook, it has tensorboard visualization and some links for other sources. Use this on a personal machine. -
classifierclass_usage_keras_main_script.pyandclassifierclass_usage_numpy_main_script.pyare script files to be used when running on a cluster. -
data/ folder contains data for
EMNISTandMNIST, if you don't find data in data folder then download it from internet and place it in the data folder, if the folder doesn't exist create one. -
MNIST can be found at
- Try to run the notebooks
classifierclass_usage.ipynb,train_using_numpy_arrays.ipynband complete the exrercises given within.
- All the codes were tested with
tensorflow 1.15andKeras 2.2.4inPython 2.7andPython 3.7.5on Linux however when you try to run on windows you might encounter issues like below:
-
If you don't have
nbextensiontab visible in your notebook then open anaconda prompt and run the following -
pip install jupyter_contrib_nbextensions -
jupyter contrib nbextension install --user -
jupyter nbextension enable varInspector/main -
Enable table of contents from nbextension tab once you start your notebook
-
Another problem you might have is:
-
AttributeError: module 'h5py' has no attribute 'Group'when you try to run something with keras in windows -
So, run the following to fix this by opening anaconda command prompt in admin mode
-
pip uninstall h5py -
pip install h5py==2.10.0
-
Go to the directory where you're logging your file by using the command
cd "your/logging/directory". Replaceyour/logging/directory"with the path to your tensorflow log files. -
And then run the following
tensorboard --logdir "your logging directory name here" -
And then tenosrboard will print a link to the screen that might looks like http://ENG40xxx:6006/
-
Copy the link and paste it in your browser then you should be able to see the various trends for the models that are being trained.