Skip to content

Instantly share code, notes, and snippets.

View saurabhghatnekar's full-sized avatar
🎯
Focusing

Saurabh G Ghatnekar saurabhghatnekar

🎯
Focusing
View GitHub Profile
@saurabhghatnekar
saurabhghatnekar / my_answers.py
Created December 21, 2017 18:08
DLND/first neural network [-0.03172939]]))) AssertionError: False is not true
import numpy as np
class NeuralNetwork(object):
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
# Set number of nodes in input, hidden and output layers.
self.input_nodes = input_nodes
self.hidden_nodes = hidden_nodes
self.output_nodes = output_nodes