Giter Site home page Giter Site logo

vinetos / neural-network-xor Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 1.0 62 KB

Implements a neural network learning XOR gate in your favourite languages !

License: The Unlicense

Python 9.01% Jupyter Notebook 90.99%
hacktoberfest artificial-neural-networks artificial-intelligence ai beginner-friendly xor-neural-network algorithms

neural-network-xor's Introduction

Neural-Network-XOR

Implement a Neural Network learning XOR gate in your favourite languages !

File architecture

To avoid problems, follow this architecture :

<root>
  |_ python
      |_ <username>
          |_ my file.py
          |_ network.py
  |_ java
      |_ <username>
          |_ Main.java
          |_ Test.java

To increase lisibility, I recommend to create only ONE FILE. For instance, main.py should contains all the code needed to run the project.

XOR gate

An XOR gate (sometimes referred to by its extended name, Exclusive OR gate) is a **digital logic gate** with two or more inputs and one output that performs exclusive disjunction. The output of an XOR gate is true only when exactly one of its inputs is true. If both of an XOR gate's inputs are false, or if both of its inputs are true, then the output of the XOR gate is false.
If an XOR gate has more than two inputs, then its behavior depends on its implementation. In the vast majority of cases, an XOR gate will output true if an odd number of its inputs is true.
Input Output
AB
00
01
10
11
Q = A โŠ• B
0
1
1
0

Logical Proof of XOR

A B A + B A' B' A' + B' A โŠ• B = (A+B).(A'+B')
0001110
0111011
1010111
1110000

In this table,

  • A + B represent OR operation between A and B
  • A' and B'represent A & B compliment respectively
  • dot(.) represent AND operation

Significance of XOR in Neural Network

Gates are the building blocks of Perceptron. XOR is a classification problem and one for which the expected outputs are known in advance. It is therefore appropriate to use a supervised learning approach. The XOR gate consists of an OR gate, NAND gate and an AND gate. This means we need to combine two perceptrons.

neural-network-xor's People

Contributors

arya-web avatar namanshah01 avatar nirmalsilwal avatar vinetos avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

noahcoder11

neural-network-xor's Issues

Explain what is XOR gate

Update the README and explain what is the XOR gate with a table with Input / Output
instead of Image

Add your own implementation of a neural network learning XOR

You are learning AI ? Neural Network ?
Share your research and contribute to the Hacktoberfest !

The target is to add as many user approach as possible !

How to contribute ?

  1. Forks the project
  2. Add your implementation following the file architecture
  3. Submit a Pull Request
  4. Enjoy :D

Warning

Pull requests will be reviewed to avoid spamming :)

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.