コード例 #1
0
void QuasiNewtonMethodTest::test_get_inverse_Hessian_approximation_method(void)
{
   message += "test_get_inverse_Hessian_approximation_method\n";

   QuasiNewtonMethod qnm;

   qnm.set_inverse_Hessian_approximation_method(QuasiNewtonMethod::DFP);
   assert_true(qnm.get_inverse_Hessian_approximation_method() == QuasiNewtonMethod::DFP, LOG);

   qnm.set_inverse_Hessian_approximation_method(QuasiNewtonMethod::BFGS);
   assert_true(qnm.get_inverse_Hessian_approximation_method() == QuasiNewtonMethod::BFGS, LOG);
}
コード例 #2
0
void TestQuasiNewtonMethod::test_set_inverse_Hessian_approximation_method(void)
{
    message += "test_set_training_direction_method\n";

    QuasiNewtonMethod qnm;

    qnm.set_inverse_Hessian_approximation_method(QuasiNewtonMethod::BFGS);
    assert_true(qnm.get_inverse_Hessian_approximation_method() == QuasiNewtonMethod::BFGS, LOG);
}