Simple Neural Networks in Python. A detail-oriented ...
towardsdatascience.com › inroduction-to-neuralOct 24, 2019 · inputs = np.array ( [ [0, 1, 0], [0, 1, 1], [0, 0, 0], [1, 0, 0], [1, 1, 1], [1, 0, 1]]) outputs = np.array ( [ [0], [0], [0], [1], [1], [1]]) As mentioned earlier, neural networks need data to learn from. We will create our input data matrix and the corresponding outputs matrix with Numpy’s .array () function.