def _propagate_forward(self, input=[]):
        ai, ao, ah, wi, wo = self._ai,  self._ao, self._ah, self._wi, self._wo
        assert len(input) == len(ai) - 1
        # Activate input nodes.
        for i, v in enumerate(input):
            ai[i] = v
        # Activate hidden nodes.
        for j, v in enumerate(ah):
            ah[j] = sigmoid(sum((v * wi[i][j] for i, v in enumerate(ai))))
        # Activate output nodes.
        for k, v in enumerate(ao):
            ao[k] = sigmoid(sum((v * wo[j][k] for j, v in enumerate(ah))))
        return list(ao)
Propagates the input through the network and returns the output activiation.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/BPNN._propagate_forward