def test_FANN_with_bias_feed_forward_single_sample(): fc = FullConnectionWithBias(3, 1) sig = SigmoidLayer(1) nn = FANN([fc, sig]) for x, t in zip(X_nb, T): t = np.atleast_2d(t) assert_equal(nn.forward_pass(theta, x), t)
def test_FANN_with_bias_feed_forward_single_sample(): fc = FullConnectionWithBias(3, 1) sig = SigmoidLayer(1) nn = FANN([fc, sig]) for x, t in zip(X_nb, T) : t = np.atleast_2d(t) assert_equal(nn.forward_pass(theta, x), t)
def test_FANN_with_bias_feed_forward_multisample(): fc = FullConnectionWithBias(3, 1) sig = SigmoidLayer(1) nn = FANN([fc, sig]) assert_equal(nn.forward_pass(theta, X_nb), T)
def test_FANN_feed_forward_multisample(): fc = FullConnection(4, 1) sig = SigmoidLayer(1) nn = FANN([fc, sig]) assert_equal(nn.forward_pass(theta, X), T)