Skip to content

Commit

Permalink
zeroed tensor at end of Flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Dec 25, 2024
1 parent 748cc6b commit 71ca3a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/libebm/PartitionOneDimensionalBoosting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,10 @@ static ErrorEbm Flatten(BoosterShell* const pBoosterShell,

EBM_ASSERT(bNominal || pSplit == cSlices - 1 + pInnerTermUpdate->GetSplitPointer(iDimension));

pInnerTermUpdate->SetCountSlices(iDimension, 1);

LOG_0(Trace_Verbose, "Exited Flatten");
return Error_IllegalParamVal;
return Error_None;
}
if(!pTreeNode->DECONSTRUCT_IsRightChildTraversal()) {
// we checked earlier that countBins could be converted to a UIntSplit
Expand Down

0 comments on commit 71ca3a7

Please sign in to comment.