Git Product home page Git Product logo

perceptron-with-early-stopping's Introduction

Perceptron-with-early-stopping

An implementation of a Perceptron using early stopping to prevent over-fitting. Used the step function as the activation function.

  • The program takes arguments in the form: [train-set][tune-set][test-set].

#Input file format:

  1. The files are expected to have the following format:
  • The first line, an integer for the number of features per example.
  • Next, list each feature on its own line with the its possible values, ex. gender – male female.
  • Next, the two label features are listed, each on its own line.
  • Next, an integer for the number of examples in the file, on its own line.
  • Lastly, the examples, listed as the example each on its own line, ex.[example name][label][feature values]. The feature values should have the same order as they were given to the program.
  1. The program will ignore empty lines and lines that start with “//”.
  2. The program takes binary features and labels. If the set has numerical values, this is easy to work around, just have a threshold for each value.
  3. Change the step and patience values according to the desired error value.

perceptron-with-early-stopping's People

Contributors

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