Skip to content

Commit

Permalink
1.6.11
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Aug 5, 2023
1 parent eece445 commit 779c29f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion distfit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = 'Erdogan Tasksen'
__email__ = '[email protected]'
__version__ = '1.6.10'
__version__ = '1.6.11'


# module level doc-string
Expand Down
6 changes: 3 additions & 3 deletions distfit/tests/test_distfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ def test_distfit(self):
dfit = distfit(method='percentile', n_boots=None)
dfit.fit_transform(X, verbose=0)
results=dfit.predict(y)
assert np.all(np.isin([*results.keys()], ['y', 'y_proba', 'y_pred', 'P', 'teststat']))
assert np.all(np.isin([*results.keys()], ['y', 'y_proba', 'y_pred', 'P', 'teststat', 'df']))

# TEST 14: Quantile
dfit = distfit(method='quantile', n_boots=None)
dfit.fit_transform(X, verbose=0)
results=dfit.predict(y)
assert np.all(np.isin([*results.keys()], ['y', 'y_proba', 'y_pred', 'teststat']))
assert np.all(np.isin([*results.keys()], ['y', 'y_proba', 'y_pred', 'teststat', 'df']))

# TEST 15: Discrete
import random
Expand All @@ -322,7 +322,7 @@ def test_distfit(self):
assert [*dfit.model.keys()]==['name', 'model', 'params', 'score', 'chi2r', 'n', 'p', 'CII_min_alpha', 'CII_max_alpha']
# TEST 15B
results = dfit.predict([0, 1, 10, 11, 12])
assert np.all(np.isin([*results.keys()], ['y', 'y_proba', 'y_pred', 'P', 'y_bool']))
assert np.all(np.isin([*results.keys()], ['y', 'y_proba', 'y_pred', 'P', 'y_bool', 'df']))

from distfit import distfit
# Set parameters for the test-case
Expand Down

0 comments on commit 779c29f

Please sign in to comment.