Coder Social home page Coder Social logo

ml-prac6-xor-perceptron's Introduction

ML Lab 6: XOR Perceptron Training

How it works:

  • An XOR perceptron is achieved by training individual 2-input, threshold activation perceptrons and linking them to form a Multi-Layered Perceptron
  • The first layer is made up of a NAND and an OR perceptron into which both input values are fed
  • The second layer is a single AND perceptron into which the outputs of the NAND and OR perceptrons are fed
  • The program trains these perceptrons using training data in the 'training' folder and tests the XOR on given test data

How to run:

  1. Run 'make' to compile
  2. Running 'make run' will run the following command: './perceptron test_data.txt output.txt'
  3. But the program can be called like: ./perceptron [test_data_file] [output_file]

Input file format

  • (Line 1) [n - number of test instances]
  • (Line 2 - n) [value1] [value2] [target output]

ml-prac6-xor-perceptron's People

Contributors

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