def create(number_of_inputs: int, number_of_outputs: int, factor: float, a: str, a_prime: str): return Layer( a, a_prime, Matrix.randomMatrix(number_of_outputs, number_of_inputs).divide(factor), Matrix.zeroMatrix(number_of_outputs, 1) )
def test_zero_matrix(self): zerMatrix = Matrix.zeroMatrix(2, 4) self.assertSequenceEqual([[0, 0, 0, 0],[0, 0, 0, 0]] , zerMatrix)