Coder Social home page Coder Social logo

umbertogriffo / fashion-mnist-cnn-keras Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 9.0 24.65 MB

Zalando's article images Recognition using Convolutional Neural Networks in Python with Keras.

License: GNU General Public License v3.0

Python 100.00%
fashion-mnist convolutional-neural-networks python dataset

fashion-mnist-cnn-keras's Introduction

Zalando's article images Recognition using Convolutional Neural Networks in Python with Keras

  • Author: Umberto Griffo
  • Twitter: @UmbertoGriffo

Software requirements

* Python 3.6, TensorFlow 1.11.0, Keras 2.2.4, numpy, matplotlib, scikit-learn, h5py

Training

execute fashion_mnist_cnn.py

Preprocessing

Normalization

Cross Validation

5-fold cross-validation

CNN configuration

The network topology can be summarized as follows:

- Convolutional layer with 32 feature maps of size 5×5.
- Pooling layer taking the max over 2*2 patches.
- Convolutional layer with 64 feature maps of size 5×5.
- Pooling layer taking the max over 2*2 patches.
- Convolutional layer with 128 feature maps of size 1×1.
- Pooling layer taking the max over 2*2 patches.
- Flatten layer.
- Fully connected layer with 1024 neurons and rectifier activation.
- Dropout layer with a probability of 50%.
- Fully connected layer with 510 neurons and rectifier activation.
- Dropout layer with a probability of 50%.
- Output layer.

Results

I evaluated the model using the 5-fold cross-validation on 60,000 examples divided into train and test.

Accuracy scores: [0.92433, 0.92133, 0.923581, 0.92391, 0.92466]

Mean Accuracy: 0.923567

Stdev Accuracy: 0.001175

I ran a new learning from scratch on 60,000 examples and then I evaluated test accuracy on the test set of 10,000 examples.

Final Accuracy: 92.56%

The following picture shows the trend of the Accuracy of the final learning:

References

fashion-mnist-cnn-keras's People

Contributors

umbertogriffo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.