Skip to content

Commit

Permalink
exit before last cut (and also last bin)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Dec 25, 2024
1 parent ca4bae9 commit b452064
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 @@ -372,7 +372,8 @@ static ErrorEbm Flatten(BoosterShell* const pBoosterShell,
EBM_ASSERT(iEdge <= cBins);
if(cBins == iEdge) {
// this cut would isolate the missing bin, but missing already has a cut
break;
pInnerTermUpdate->SetCountSlices(iDimension, 1);
return Error_None;
}
}
}
Expand Down

0 comments on commit b452064

Please sign in to comment.