FasterRisk icon indicating copy to clipboard operation
FasterRisk copied to clipboard

Update binarization_util.py

Open HarshineeSriram opened this issue 1 year ago • 0 comments

In the BinBinarizer.fit() method, the line tmp_num_thresholds -= 1 is called before tmp_num_thresholds is initialized.

Hence, if you call the BinBinarizer.fit() method, you can run into this issue: UnboundLocalError: local variable 'tmp_num_thresholds' referenced before assignment.

HarshineeSriram avatar Jan 30 '25 20:01 HarshineeSriram