hashtron.net.feedforward package¶
Submodules¶
hashtron.net.feedforward.feedforward_network module¶
- class hashtron.net.feedforward.feedforward_network.FeedforwardNetwork(net)[source]¶
Bases:
object- forward(in_val, l: int, worst: int, neg: int) -> (<class 'hashtron.net.input.Input'>, <class 'bool'>)[source]¶
Forward pass through the network.
- Parameters:
in_val – The input to the layer.
l – The layer index.
worst – The index of the worst hashtron.
neg – Whether to negate the worst hashtron’s output.
- Returns:
The intermediate output and a boolean indicating if the worst hashtron’s output was computed.