25 std::cout <<
"Testing Activation Functions:" << std::endl;
31 error = testIdentity<TReference<Scalar_t>>(10);
32 std::cout <<
"Testing identity activation: ";
33 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
37 error = testIdentityDerivative<TReference<Scalar_t>>(10);
38 std::cout <<
"Testing identity activation derivative: ";
39 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
45 error = testRelu<TReference<Scalar_t>>(10);
46 std::cout <<
"Testing ReLU activation: ";
47 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
51 error = testReluDerivative<TReference<Scalar_t>>(10);
52 std::cout <<
"Testing ReLU activation derivative: ";
53 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
59 error = testSigmoid<TReference<Scalar_t>>(10);
60 std::cout <<
"Testing Sigmoid activation: ";
61 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
65 error = testSigmoidDerivative<TReference<Scalar_t>>(10);
66 std::cout <<
"Testing Sigmoid activation derivative: ";
67 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
73 error = testTanh<TReference<Scalar_t>>(10);
74 std::cout <<
"Testing TanH activation: ";
75 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
79 error = testTanhDerivative<TReference<Scalar_t>>(10);
80 std::cout <<
"Testing TanH activation derivative: ";
81 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
87 error = testSymmetricReluDerivative<TReference<Scalar_t>>(10);
88 std::cout <<
"Testing Symm. ReLU activation: ";
89 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
93 error = testSymmetricReluDerivative<TReference<Scalar_t>>(10);
94 std::cout <<
"Testing Symm. ReLU activation derivative: ";
95 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
101 error = testSoftSign<TReference<Scalar_t>>(10);
102 std::cout <<
"Testing Soft Sign activation: ";
103 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
107 error = testSoftSignDerivative<TReference<Scalar_t>>(10);
108 std::cout <<
"Testing Soft Sign activation derivative: ";
109 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
115 error = testGauss<TReference<Scalar_t>>(10);
116 std::cout <<
"Testing Gauss activation: ";
117 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
121 error = testGaussDerivative<TReference<Scalar_t>>(10);
122 std::cout <<
"Testing Gauss activation derivative: ";
123 std::cout <<
"maximum relative error = " <<
print_error(error) << std::endl;
std::string print_error(AFloat &e)
Color code error.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e