Skip to content

Commit

Permalink
Fixed IcpClassifier for significance = None.
Browse files Browse the repository at this point in the history
IcpClassifier did not work as intended with significance = None. Fixed.
  • Loading branch information
donlnz committed May 26, 2015
1 parent 0410610 commit 727a209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonconformist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

# Authors: Henrik Linusson

__version__ = '1.2.4'
__version__ = '1.2.5'

__all__ = ['icp', 'nc', 'acp']
2 changes: 1 addition & 1 deletion nonconformist/icp.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def predict(self, x, significance=None):
else:
p[j, i] += n_eq / (n_cal + 1)

if significance:
if significance is not None:
return p > significance
else:
return p
Expand Down

0 comments on commit 727a209

Please sign in to comment.