Skip to content

Machine Learning library for educational purpose.

Notifications You must be signed in to change notification settings

theonov13/Neural-Network

This branch is up to date with TheIndependentCode/Neural-Network:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6a1e28e · Nov 17, 2021

History

10 Commits
May 12, 2021
Nov 14, 2021
May 12, 2021
Nov 17, 2021
May 12, 2021
Jul 26, 2021
May 12, 2021
May 12, 2021
Nov 14, 2021
Nov 14, 2021
Nov 14, 2021
May 12, 2021
Nov 14, 2021

Repository files navigation

Neural Network From Scratch

This code is part of my video series on YouTube: Neural Network from Scratch | Mathematics & Python Code.

Try it!

python3 xor.py

Example

import numpy as np

from dense import Dense
from activations import Tanh
from losses import mse, mse_prime
from network import train

X = np.reshape([[0, 0], [0, 1], [1, 0], [1, 1]], (4, 2, 1))
Y = np.reshape([[0], [1], [1], [0]], (4, 1, 1))

network = [
    Dense(2, 3),
    Tanh(),
    Dense(3, 1),
    Tanh()
]

train(network, mse, mse_prime, X, Y, epochs=10000, learning_rate=0.1)

About

Machine Learning library for educational purpose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%