Skip to content

Update binarization_util.py#13

Open
HarshineeSriram wants to merge 1 commit intointerpretml:mainfrom
HarshineeSriram:main
Open

Update binarization_util.py#13
HarshineeSriram wants to merge 1 commit intointerpretml:mainfrom
HarshineeSriram:main

Conversation

@HarshineeSriram
Copy link

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.

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

Signed-off-by: Harshinee Sriram <hsriram@cs.ubc.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant