Giter Site home page Giter Site logo

my_sshforest's Introduction

Attempts at a Kaggle Problem

Kaggle is hosting a competition to predict which type tree---one out of seven possibilities---one would expect to encounter on 565,893 plots of Roosevelt National Forest in Colorado, where each plot measures 30 meters x 30 meters. A training set of 15,121 classified plots was provided. Some of the predictive variables, such as the elevation of the plot, are quantitative. Others variables are qualitative, such as which type of soil out of forty possibilities is present at the plot.

This repository contains some algorithms which attempt to solve this classification problem. All algorthims depend on the NumPy/SciPy/Matplotlib framework; most use scikit-learn. Most algorithms have a main() function that is invoked when the user calls

python somealgo.py

from the command line (here "somealgo.py" corresponds to one of the classifiers in this repository). The following pieces of code contain a classifier that can be called this way:

  • "naive_bayes.py"
  • "nearest_neighbor.py"
  • "simple_forest.py"
  • "simple_svm.py"

The best performing of these algorithms is "simple_forest.py," which is an random forest pulled straight out of the box from scikit-learn.

nielsen_net.py

The neural net in "nielsen_net.py" depends on sample code by Michael Nielsen, shared here on github. Currently you can't simply fork this repository and call "nielsen_net.py" without also setting up Nielsen's code on your machine.

sshforest_utilities.py

This contains a few useful plotting and munging functions. Calling

python sshforest_utilities.py

will make a cool pair of plots. One plot shows the contours of a distance-weighted 4 nearest neighbors classifier on 'Elevation' vs 'Horizontal_Distance_To_Hydrology' axes. The adjacent plot shows the distribution of training data over these same axes.

my_sshforest's People

Contributors

kcrum avatar

Watchers

 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.