Lines Matching refs:rate
116 // Compute the learning rate according to PA-I.
121 float rate = loss / twice_norm_square;
122 if (rate > aggressiveness_) {
123 rate = aggressiveness_;
125 // VLOG(1) << "loss = " << loss << " rate = " << rate;
129 parameters_[target][i] += rate * inputs[i];
131 parameters_[other_class][i] -= rate * inputs[i];
149 // Compute the learning rate according to PA-I.
154 float rate = loss / twice_norm_square;
155 if (rate > aggressiveness_) {
156 rate = aggressiveness_;
158 // VLOG(1) << "loss = " << loss << " rate = " << rate;
162 parameters_[target][inputs[i].first] += rate * inputs[i].second;
164 parameters_[other_class][inputs[i].first] -= rate * inputs[i].second;