1 #ifndef _LDAPLUSPLUS_OPTIMIZATION_MULTINOMIAL_LOGISTIC_REGRESSION 2 #define _LDAPLUSPLUS_OPTIMIZATION_MULTINOMIAL_LOGISTIC_REGRESSION 9 namespace optimization {
19 template <
typename Scalar>
22 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixX;
23 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> VectorX;
64 Scalar
value(
const MatrixX &eta)
const;
86 void gradient(
const MatrixX &eta, Eigen::Ref<MatrixX> grad)
const;
90 const Eigen::VectorXi &y_;
98 #endif // _LDAPLUSPLUS_OPTIMIZATION_MULTINOMIAL_LOGISTIC_REGRESSION Definition: MultinomialLogisticRegression.hpp:20
MultinomialLogisticRegression(const MatrixX &X, const Eigen::VectorXi &y, VectorX Cy, Scalar L)
Definition: MultinomialLogisticRegression.cpp:30
void gradient(const MatrixX &eta, Eigen::Ref< MatrixX > grad) const
Definition: MultinomialLogisticRegression.cpp:64
Scalar value(const MatrixX &eta) const
Definition: MultinomialLogisticRegression.cpp:40
Definition: Document.hpp:11