Skip to content

Commit

Permalink
Fixed wrong global in EstimParam
Browse files Browse the repository at this point in the history
  • Loading branch information
fradav committed Dec 31, 2019
1 parent 17ceab7 commit 80d32f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EstimParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ EstimParamResults EstimParam_fun(Reftable &myread,
size_t j = p.second;
std::vector<double> quants = forestQuantiles(obs,preds[5][j],probs);
auto reality = y(p.first);
auto diff = expectation - reality;
auto diff = preds[0][0][p.first] - reality;
// auto diff = expectation - reality;
auto sqdiff = diff * diff;
auto CI = quants[2] - quants[0];
MSE += sqdiff;
Expand Down

0 comments on commit 80d32f5

Please sign in to comment.