Skip to content

MeQuant/CNN_from_scratch

 
 

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 (The Independent Code). https://www.youtube.com/watch?v=Lakz2MoHy6o&list=TLPQMDIxMDIwMjVlmXrTunFBcQ&index=3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%