Skip to content

Commit c610e6a

Browse files
authored
Merge pull request #58 from LegionKing/main
bug fix and version update
2 parents 91764e3 + 18ba75c commit c610e6a

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGE.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v1.0.1:
2+
* update version requirements of longling and pytest-flake8
3+
4+
v1.0.0:
5+
* add KaNCD and ICD
6+
17
v0.0.13:
28
* Bugfix: update dependency version of `longling`
39
* use PosLinear to replace clipper operation

EduCDM/ICD/metrics/metrics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ def doa_eval(y_true, y_pred):
7777
... [np.array([.5, .4, .6])],
7878
... [np.array([.2, .3, .5])]
7979
... ]
80-
>>> doa_eval(y_true, y_pred)['doa']
80+
>>> float(doa_eval(y_true, y_pred)['doa'])
8181
1.0
8282
>>> y_pred = [
8383
... [np.array([.4, .5, .6])],
8484
... [np.array([.3, .2, .5])]
8585
... ]
86-
>>> doa_eval(y_true, y_pred)['doa']
86+
>>> float(doa_eval(y_true, y_pred)['doa'])
8787
0.5
8888
"""
8989
doa = []

EduCDM/MIRT/MIRT.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def irt2pl(theta, a, b, *, F=np):
3030
>>> theta = [1, 0.5, 0.3]
3131
>>> a = [-3, 1, 3]
3232
>>> b = 0.5
33-
>>> irt2pl(theta, a, b) # doctest: +ELLIPSIS
33+
>>> float(irt2pl(theta, a, b)) # doctest: +ELLIPSIS
3434
0.109...
3535
>>> theta = [[1, 0.5, 0.3], [2, 1, 0]]
3636
>>> a = [[-3, 1, 3], [-3, 1, 3]]

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='EduCDM',
13-
version='0.0.13',
13+
version='1.0.1',
1414
extras_require={
1515
'test': test_deps,
1616
},

0 commit comments

Comments
 (0)