Git Product home page Git Product logo

maxgalindo150 / neural-network-from-scratch Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 238 KB

This repository contains code for implementing a neural network from scratch using numpy. The notebook demonstrates the step-by-step process of creating a neural network, training it, and evaluating its performance on a binary classification problem.

License: MIT License

Jupyter Notebook 100.00%

neural-network-from-scratch's Introduction

Neural-Network-From-Scratch

This repository contains code for implementing a neural network from scratch using numpy. The notebook demonstrates the step-by-step process of creating a neural network, training it, and evaluating its performance on a binary classification problem.

Contents

  1. Data Preparation
  2. Activation and Loss Functions
  3. Neural Network Construction
  4. Training the Model
  5. Analysis

Data Preparation

The notebook starts by generating a synthetic dataset consisting of 10,000 samples with two features. It visualizes the data on a scatter plot, where each class is represented by a different color.

Activation and Loss Functions

The notebook defines the sigmoid and ReLU activation functions, which are used in the hidden layers of the neural network. The Mean Squared Error (MSE) loss function is also implemented for training the network.

Neural Network Construction

The notebook provides a function to initialize the parameters of the neural network based on the specified layer dimensions. It demonstrates an example network structure with an input layer, two hidden layers, and an output layer.

Training the Model

The notebook includes a training function that performs forward propagation, backpropagation, and gradient descent to update the weights and biases of the network. It iteratively trains the network on the provided dataset and tracks the training errors.

Analysis

The notebook analyzes the performance of the trained neural network by plotting the training errors over iterations. It also generates new, unclassified data and uses the trained network to classify it. The final classification results are visualized on a scatter plot.

The "Neural-Network-From-Scratch" repository provides a comprehensive example of implementing a neural network using numpy and demonstrates its effectiveness in solving a binary classification problem.

neural-network-from-scratch's People

Contributors

maxgalindo150 avatar

Watchers

Kostas Georgiou 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.