Skip to content

Instantly share code, notes, and snippets.

View absbin's full-sized avatar
💭
Do not Stop . . .

ABS BIN absbin

💭
Do not Stop . . .
View GitHub Profile
@Jalalx
Jalalx / XOR.py
Created October 20, 2019 19:16
XOR Neural Network in python using MLP Back-Propagation
import numpy as np
def sigmoid(x):
return 1.0 / (1.0 + np.exp(-x))
def sigmoid_prime(x):
return x * (1.0 - x)
epochs = 5000
input_size, hidden_size, output_size = 2, 3, 1