1 #ifndef _LDAPLUSPLUS_OPTIMIZATION_SECOND_ORDER_LOGISTIC_REGRESSION_APPROXIMATION_HPP_ 2 #define _LDAPLUSPLUS_OPTIMIZATION_SECOND_ORDER_LOGISTIC_REGRESSION_APPROXIMATION_HPP_ 9 namespace optimization {
33 template <
typename Scalar>
36 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixX;
37 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> VectorX;
54 const std::vector<MatrixX> &X_var,
55 const Eigen::VectorXi &y,
72 const std::vector<MatrixX> &X_var,
73 const Eigen::VectorXi &y,
102 Scalar
value(
const MatrixX &eta)
const;
140 void gradient(
const MatrixX &eta, Eigen::Ref<MatrixX> grad)
const;
144 const std::vector<MatrixX> &X_var_;
145 const Eigen::VectorXi &y_;
154 #endif // _LDAPLUSPLUS_OPTIMIZATION_SECOND_ORDER_LOGISTIC_REGRESSION_APPROXIMATION_HPP_ void gradient(const MatrixX &eta, Eigen::Ref< MatrixX > grad) const
Definition: SecondOrderLogisticRegressionApproximation.cpp:73
SecondOrderLogisticRegressionApproximation(const MatrixX &X, const std::vector< MatrixX > &X_var, const Eigen::VectorXi &y, VectorX Cy, Scalar L)
Definition: SecondOrderLogisticRegressionApproximation.cpp:33
Scalar value(const MatrixX &eta) const
Definition: SecondOrderLogisticRegressionApproximation.cpp:44
Definition: SecondOrderLogisticRegressionApproximation.hpp:34
Definition: Document.hpp:11