Skip to content

Commit

Permalink
exit before writing last bin
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Dec 25, 2024
1 parent e14f686 commit ca4bae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/libebm/PartitionOneDimensionalBoosting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ static ErrorEbm Flatten(BoosterShell* const pBoosterShell,
EBM_ASSERT(0 != prev);
if(cBins + 1 == iEdge && cBins == prev) {
// this cut would isolate the missing bin, but we handle those scores separately
break;
pInnerTermUpdate->SetCountSlices(iDimension, 1);
return Error_None;
}
}
}
Expand Down

0 comments on commit ca4bae9

Please sign in to comment.