Giter Club home page Giter Club logo

fashion-mnist-nn's Introduction

Fashion Article Classification (Fashion MNIST)

This is the code for a fashion article classifier that detects clothing and accessories, from the Zalando Research Fashion MNIST repository.

alt text

(Image by: zalandoresearch)

Overview

I built a 3-layer feedforward neural network which classifies different clothing / accessory items such as t-shirts, trousers, dresses, sneakers, and bags using the TensorFlow library. The inputs are black and white images of size 28x28, and the output is an integer (corresponding to the target class).

Set Classification Accuracy
Training 93.51%
Test 89.35%

Comparison with the original MNIST

Set Accuracy (Fashion MNIST) Accuracy (MNIST)
Training 93.51% 99.74%
Test 89.35% 97.74%

Details

Here are the final hyperparameters and parameters which yielded the accuracies above:

Hyperparameter / Parameter Value / Type
Weight initialization Xavier
Hidden layers 2
Hidden units (layer 1) 128
Activations (hidden layers) ReLU
Output layer Softmax
Minibatch size 32
Learning rate 0.0005
Epochs 16
Optimizer Adam

Dependencies

  • numpy
  • tensorflow

Install dependencies using pip.

Dataset

The data set was taken from the Fashion MNIST repository by zalandoresearch. The training set contains 60,000 examples and the test set contains 10,000 examples. Each example is a 28x28 grayscale image, and has an associated label from 10 classes.

Target class Definition
0 T-shirt/top
1 Trouser
2 Pullover
3 Dress
4 Coat
5 Sandal
6 Shirt
7 Sneaker
8 Bag
9 Ankle boot

Usage

Run the notebook on a localhost server using jupyter notebook.

fashion-mnist-nn's People

Contributors

vrjkmr avatar

Stargazers

 avatar

Watchers

 avatar  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.