DiSMEC++
|
Functions | |
template<class Derived > | |
void | htd_sum_naive (const std::vector< int > &indices, Eigen::Ref< DenseRealVector > output, const Eigen::EigenBase< Derived > &features, const DenseRealVector &costs, const DenseRealVector &direction) |
template<int LOOK_AHEAD = 2> | |
void | htd_sum (const std::vector< int > &indices, Eigen::Ref< DenseRealVector > output, const SparseFeatures &features, const DenseRealVector &costs, const DenseRealVector &direction) |
void | __attribute__ ((hot)) htd_sum_new(const std |
template<typename Derived > | |
real_t | value_from_xTw (const DenseRealVector &cost, const BinaryLabelVector &labels, const Eigen::DenseBase< Derived > &xTw) |
|
inline |
Definition at line 58 of file reg_sq_hinge_detail.h.
References dismec::fast_dot(), and dismec::ssize().
Referenced by dismec::stats::StatisticsCollection::record().
|
inline |
Definition at line 27 of file reg_sq_hinge_detail.h.
References dismec::ssize().
Referenced by dismec::objective::Regularized_SquaredHingeSVC::hessian_times_direction_imp(), and TEST_CASE().
|
inline |
Definition at line 17 of file reg_sq_hinge_detail.h.
Referenced by TEST_CASE().
real_t dismec::l2_reg_sq_hinge_detail::value_from_xTw | ( | const DenseRealVector & | cost, |
const BinaryLabelVector & | labels, | ||
const Eigen::DenseBase< Derived > & | xTw | ||
) |
Given a vector expression xTw that contains the product of feature matrix and weight vector, a label vector and a vector of cost factors, calculates the squared hinge loss
Definition at line 83 of file reg_sq_hinge_detail.h.
References dismec::to_long().
Referenced by dismec::objective::GenericLinearClassifier::lookup_on_line(), dismec::objective::LinearClassifierImpBase< Derived >::lookup_on_line(), and dismec::objective::GenericLinearClassifier::value_unchecked().