Searched defs:SparseWeightVector (Results 1 - 4 of 4) sorted by relevance

/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dstochastic_linear_ranker.cpp26 const SparseWeightVector<Key, Hash> &positive,
27 const SparseWeightVector<Key, Hash> &negative,
32 SparseWeightVector<Key, Hash> gradient;
63 const SparseWeightVector<Key, Hash> &positive,
64 const SparseWeightVector<Key, Hash> &negative) {
67 SparseWeightVector<Key, Hash> weight_backup;
25 UpdateSubGradient( const SparseWeightVector<Key, Hash> &positive, const SparseWeightVector<Key, Hash> &negative, const double learning_rate, const double positive_score, const double negative_score, const int32 gradient_l0_norm) argument
62 UpdateClassifier( const SparseWeightVector<Key, Hash> &positive, const SparseWeightVector<Key, Hash> &negative) argument
H A Dsparse_weight_vector.h36 class SparseWeightVector { class in namespace:learning_stochastic_linear
41 SparseWeightVector() { function in class:learning_stochastic_linear::SparseWeightVector
44 ~SparseWeightVector() {}
45 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) { argument
48 void operator=(const SparseWeightVector<Key, Hash> &other) { argument
51 void CopyFrom(const SparseWeightVector<Key, Hash> &other) { argument
115 void LoadWeightVector(const SparseWeightVector<Key, Hash> &vec) { argument
132 const SparseWeightVector<Key, Hash> &w1,
135 const SparseWeightVector<Ke
190 operator <<(std::ostream &stream, const SparseWeightVector<Key, Hash> &vector) argument
[all...]
H A Dsparse_weight_vector.cpp35 bool SparseWeightVector<Key, Hash>::IsValid() const {
48 void SparseWeightVector<Key, Hash>::AdditiveWeightUpdate( argument
50 const SparseWeightVector<Key, Hash> &w1,
62 void SparseWeightVector<Key, Hash>::AdditiveSquaredWeightUpdate( argument
64 const SparseWeightVector<Key, Hash> &w1,
77 void SparseWeightVector<Key, Hash>::AdditiveInvSqrtWeightUpdate( argument
79 const SparseWeightVector<Key, Hash> &w1,
94 void SparseWeightVector<Key, Hash>::AdditiveWeightUpdateBounded( argument
96 const SparseWeightVector<Key, Hash> &w1,
122 void SparseWeightVector<Ke argument
134 MultWeightUpdateBounded( const SparseWeightVector<Key, Hash> &w1) argument
194 DotProduct( const SparseWeightVector<Key, Hash> &w1) const argument
[all...]
H A Dstochastic_linear_ranker.h168 void LoadWeights(const SparseWeightVector<Key, Hash> &model) { argument
172 void SaveWeights(SparseWeightVector<Key, Hash> *model) {
176 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) { argument
200 int UpdateClassifier(const SparseWeightVector<Key, Hash> &positive,
201 const SparseWeightVector<Key, Hash> &negative);
204 SparseWeightVector<Key, Hash> weight_;
220 SparseWeightVector<Key, Hash> current_negative_;
234 void UpdateSubGradient(const SparseWeightVector<Key, Hash> &positive,
235 const SparseWeightVector<Key, Hash> &negative,

Completed in 46 milliseconds