Skip to content

Demo code to learn to use neural networks for image recognition. It uses the MNIST dataset of handwritten digits.

License

Notifications You must be signed in to change notification settings

t-systems-on-site-services-gmbh/nn-demo-keras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Networks Demo with Keras

This is a demo code to learn how to use neural networks for image recognition. It uses the MNIST dataset of handwritten digits. Technological we use Python, Tensorflow, Keras and Jupyter Notebooks to do the job.

  • 01-MNIST-dense.ipynb is the first example. It uses a fully connected neural network.
  • 02-MNIST-conv.ipynb is the second example. It is based on the first example, but uses a convolutional neural network. Here you can examine the improvement of accuracy, although the network has fewer params.

If you want to learn more about this topic, I very much recommend the book Deep Learning with Python from Francois Chollet.

Installation

  1. install Conda (Python 3.7): https://docs.conda.io/en/latest/miniconda.html
  2. make sure to have direct internet access or configure a web-proxy (for git and conda) - see web-proxy with conda below
  3. check out this project: git clone https://github.com/t-systems-on-site-services-gmbh/nn-demo-keras.git
  4. change to the nn-demo-keras project directory
  5. create new conda environment with python version 3.6: conda create --name nn-demo python=3.6
  6. activate the new conda environment: conda activate nn-demo
  7. install pip packages: pip install -r pip-packages.txt
  8. install tool to use conda with jupyter: conda install nb_conda_kernels
  9. Start jupyter notebook: jupyter notebook
  10. load the first notebook and execute it

Use a web-proxy with conda

To use a web-proxy with conda, you have to create a .condarc with the following content:

proxy_servers:
  http: http://user:[email protected]:8080
  https: https://user:[email protected]:8080

ssl_verify: False

About

Demo code to learn to use neural networks for image recognition. It uses the MNIST dataset of handwritten digits.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published