Python AI Code

This Python ai code uses straight Numpy to produce this Artificial Intelligence result. import numpy as np # sigmoid function def nonlin(x,deriv=False): if(deriv==True): return x*(1-x) return 1/(1+np.exp(-x)) # input dataset X = np.array( , , , ]) # output dataset y = np.array( ]).T # seed random numbers to make calculation # deterministic (just a good practice) np.random.seed(1) #...
Read More
Top