Skip to content

Commit

Permalink
Merge pull request #242 from imbs-hl/issue239
Browse files Browse the repository at this point in the history
Fix #239
  • Loading branch information
mnwright authored Dec 1, 2017
2 parents f3a1a31 + 7d13762 commit 1cc4b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeSurvival.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ double TreeSurvival::computePredictionAccuracyInternal() {
std::vector<double> sum_chf;
for (size_t i = 0; i < prediction_terminal_nodeIDs.size(); ++i) {
size_t terminal_nodeID = prediction_terminal_nodeIDs[i];
sum_chf.push_back(std::accumulate(chf[terminal_nodeID].begin(), chf[terminal_nodeID].end(), 0));
sum_chf.push_back(std::accumulate(chf[terminal_nodeID].begin(), chf[terminal_nodeID].end(), 0.0));
}

// Return concordance index
Expand Down

0 comments on commit 1cc4b68

Please sign in to comment.