Skip to content

Commit ce135d4

Browse files
committed
cleanup
1 parent 1fac9d4 commit ce135d4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/pred/bias.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class BiasEstimator {
5959
run_mv(nd_lambda)
6060
{
6161
ctx0=ctx1=ctx2=mix_ctx=0;
62-
px=py=0.0;
62+
px=0.0;
6363
}
6464
void CalcContext(double p)
6565
{
@@ -119,8 +119,7 @@ class BiasEstimator {
119119
const double bias2=cnt2[ctx2].get();
120120
const double pbias=mix_ada[mix_ctx].Predict({bias0,bias1,bias2});
121121
px=pred;
122-
py=pred+pbias;
123-
return py;
122+
return pred+pbias;
124123
}
125124
void Update(double val) {
126125
#ifdef BIAS_ROUND_PRED
@@ -146,7 +145,6 @@ class BiasEstimator {
146145

147146
run_mv.Update(delta);
148147

149-
// update with error (including bias)
150148
mix_ada[mix_ctx].Update(delta);
151149
}
152150
private:
@@ -159,7 +157,7 @@ class BiasEstimator {
159157
#endif
160158
vec1D hist_input,hist_delta;
161159
int ctx0,ctx1,ctx2,mix_ctx;
162-
double px,py;
160+
double px;
163161
//double alpha,p,bias0,bias1,bias2;
164162
std::vector<CntAvg> cnt0,cnt1,cnt2;
165163
const double sigma;

0 commit comments

Comments
 (0)