Giter Club home page Giter Club logo

kaggle-plant_seedlings's Introduction

Plant Seedlings Classification

I thought this Kaggle challenge would be a good way for me to test myself using what I knew about machine learning and Python's libraries.

I had previously written some simple PNG decoder functions in Python, so I grabbed that (png.py) and used it to:

  • Read in the PNG images
  • Convert to grayscale
  • Highlight green areas to black, and convert the rest of the image to black
  • Resize to 32x32

Then I can convert the resized pictures to a feature vector of 1024 (32*32) pixels of either black (0) or white (1).

For the neural network, I used Python's keras. My model consisted of:

  • A convolutional layer
  • A pooling layer
  • A flattening layer
  • A dense layer (to output to a vector of length 12, the number of labels)

Fitting the model took about three hours, so I decided I would just run it once and submit my results.

If I were to go back and redo parts of this project, I would try the following:

  • Try to trim every image to a single leaf.
  • Rotate each image to a standard orientation.

These tweaks would probably increase my accuracy, but since this project was mainly for my own edification, I'm satisfied.

My final model resulted in 67% accuracy on the Kaggle challenge.

kaggle-plant_seedlings's People

Watchers

Jared Nishikawa 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.