Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def query(self, input_list):
inputs = np.array(input_list, ndmin=2).T
# signals into hidden input
hidden_inputs =, inputs)
# signals from hidden input
hidden_outputs = self.activation_func(hidden_inputs)
# signals into output layer
final_inputs =, hidden_outputs)
# signals from output layer
outputs = self.activation_func(final_inputs)
return outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment