Ejemplo n.º 1
0
 def __init__(self, outputs, weights, bias):
     if bias: super().__init__([1] + outputs)
     else: super().__init__(outputs)
     self._weights = weights
     self.bias = lambda: bias
     self._weightsAt = util.transposed(self._weights)
Ejemplo n.º 2
0
 def __init__(self, inputs, weights):
     self._weights = weights
     self._inputs=  inputs
     self._weightsAt = transposed(self._weights)