diff --git a/shared/libebm/PartitionOneDimensionalBoosting.cpp b/shared/libebm/PartitionOneDimensionalBoosting.cpp index 63a875705..12a5f0649 100644 --- a/shared/libebm/PartitionOneDimensionalBoosting.cpp +++ b/shared/libebm/PartitionOneDimensionalBoosting.cpp @@ -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