Giter Site home page Giter Site logo

sushantpatrikar / xor-gate-with-neural-network-using-numpy Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 4.0 197 KB

XOR gate which predicts the output using Neural Network :fire:

Home Page: https://sushantpatrikar.github.io/

License: MIT License

Python 100.00%
numpy tkinter machine-learning machine-learning-algorithms ml ai artificial-intelligence neural-network neural-networks-from-scratch xor-neural-network

xor-gate-with-neural-network-using-numpy's Introduction

NeuralNetwork-logo

XOR-With-Numpy-Neural-Network

XOR gate which predicts the output using Neural Network.


Python v3.6.5

Libraries used:

  1. numpy
  2. tkinter
  3. math
  4. random

Purpose

This project can be used for educational purposes as it gives user the freedom to change learning rate, number of neurons in hidden layer and number of epochs. User can compare the results after changing these values.

Working

The Neural Network has 3 layers: input layer with 2 neurons, hidden layer, in which user can select the number of neurons according to them, and by default, it's value is 2, and output layer with 1 neuron. The first phase of neural network is training in which the possible values of (X,Y) goes as input [(0,0),(0,1),(1,0),(1,1)] with their respective answers [0,1,1,0]. The neural network modifies it's weights & biases according to the answers. After completion of training the neural network is ready to predict the answers.

How to use

After executing the program, this window pops up.

The user can select learning rate, number of neurons in hidden layer and number of epochs according to him, and then click on 'Set' button which sets the number of neurons in hidden layer, if changed by the user. After changing them, click on 'Train' button, which trains your neural network to predict the output based on the inputs.

Once the 'Training Complete' comes on the screen, the neural network is ready to predict the results. Input X & Y, and then click on the 'Predict' button, the predicted result will be shown on the Answer box, which you can compare with the expected answer.

Excited to view Pull Requests coming from your side!

For more information, you can visit my website.

xor-gate-with-neural-network-using-numpy's People

Contributors

sushantpatrikar avatar

Stargazers

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