Coder Social home page Coder Social logo

fashion-mnist-classifier's Introduction

fashion-mnist-classifier

These are the results of a fun Kaggle competition I competed in for my machine learning class. The assignment was to correctly classify images from the Fashion-MNIST dataset, which is comprised of various articles of clothing.

Methodology

We used convolution neural networks to build the classifier. While there are an abundance of ways to implement a CNN, I wanted to keep my model simple and go with some of the tried-and-true architectures we read about in class. The Stanford Computer Vision staff recommends a "CONV-RELU" layer stacking architecture, with multiple POOL layers. I decided to implement something similar, and as they stress in the literature, not reinvent the wheel.

Training the model

The training dataset contained 60,000 samples with 10 different classes. I used PyTorch to implement my architecture and then focused on fine-tuning the "learning rate" and "momentum" parameters. After some empirical testing, I found their optimal values by observing gradual minimization in the loss function over 16 epochs. See my full script in fashionMNIST.ipynb.

Results

Over the 10,000 test samples, I achieved 88% accuracy with my model. This score was high enough to put me in the top 10 of the class!

I only let my model run for 20 epochs, but if I had more time (or more computing power e.g. access to a CUDA device), I think I could have improved my model even further.

fashion-mnist-classifier's People

Contributors

nprab428 avatar

Watchers

James Cloos 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.