Can thresholds be modeled as weights?
I'm trying to model a random threshold as a weight,the threshold should help the error to decrease, the weights are not random, they are 1. It's possible to change the threshold so that the error will be 0?
import numpy as np
# input dataset
X = np.array([[0, 0],
[0, 1],
[1, 0],
[1, 1]])
# output dataset
y = np.array([[0, 0, 0, 1]]).T
syn0 = np.zeros((2, 1)) + 1
threshold = np.random.random_integers(-5, 5)
# forward propagation
l0 = X
l1 = np.dot(l0, syn0)
# how much did we miss?
l1_error = y - l1
print(l1_error)
This is what I have so far..!
Topic neural-network python
Category Data Science