Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PythonNN_demo004
def query(self, input_list):
inputs = np.array(input_list, ndmin=2).T
# signals into hidden input
hidden_inputs = np.dot(self.wih, inputs)
# signals from hidden input
hidden_outputs = self.activation_func(hidden_inputs)
# signals into output layer
final_inputs = np.dot(self.who, 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
You can’t perform that action at this time.