DiSMEC++
newton.cpp File Reference
#include "newton.h"
#include "line_search.h"
#include "utils/hash_vector.h"
#include "solver/cg.h"
#include "stats/collection.h"
#include "stats/timer.h"
#include "doctest.h"
#include <Eigen/Dense>

Go to the source code of this file.

Namespaces

 anonymous_namespace{newton.cpp}
 

Functions

 TEST_CASE ("newton with line search hyperparameters")
 
 TEST_CASE ("solve square objective")
 

Variables

constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_GRADIENT_NORM_0 {0}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_OBJECTIVE_VALUE {1}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_GRADIENT_NORM {2}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_GRADIENT {3}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_PRECONDITIONER {4}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_WEIGHT_VECTOR {5}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_LINESEARCH_STEPSIZE {6}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_CG_ITERS {7}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_ITER_TIME {8}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_LS_FAIL {9}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_LS_STEPS {10}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_PROGRESS {11}
 
constexpr const stat_id_t anonymous_namespace{newton.cpp}::STAT_ABSOLUTE_STEP {12}
 
constexpr const dismec::stats::tag_id_t anonymous_namespace{newton.cpp}::TAG_ITERATION {0}
 

Function Documentation

◆ TEST_CASE() [1/2]

TEST_CASE ( "newton with line search hyperparameters"  )

Definition at line 215 of file newton.cpp.

References dismec::solvers::NewtonWithLineSearch::set_epsilon().

◆ TEST_CASE() [2/2]

TEST_CASE ( "solve square objective"  )

Definition at line 243 of file newton.cpp.

References dismec::solvers::Minimizer::minimize().