예제 #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)
예제 #2
0
파일: testffann.py 프로젝트: khachik/ghugh
 def __init__(self, inputs, weights):
     self._weights = weights
     self._inputs=  inputs
     self._weightsAt = transposed(self._weights)