Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed May 27, 2020
1 parent 581ab43 commit 0d8d222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/survival_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <xgboost/parameter.h>
#include <memory>
#include <algorithm>
#include "probability_distribution.h"

DECLARE_FIELD_ENUM_CLASS(xgboost::common::ProbabilityDistributionType);
Expand Down
2 changes: 1 addition & 1 deletion src/metric/survival_metric.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct EvalIntervalRegressionAccuracy : public Metric {
if (pred >= y_lower[i] && pred <= y_upper[i]) {
acc_sum += 1.0;
}
weight_sum += w;
weight_sum += w;
}

double dat[2]{acc_sum, weight_sum};
Expand Down

0 comments on commit 0d8d222

Please sign in to comment.