Skip to content

Commit

Permalink
fix : error tests updated #347
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi authored and alirezazolanvari committed Nov 28, 2021
1 parent 0d4340f commit 84c54cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Test/error_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
pycm.pycm_obj.pycmCompareError: The domain of all ConfusionMatrix objects must be same! The sample size or the number of classes are different.
>>> y_pred = [0, 0, 2, 1, 0, 2, 1, 0, 2, 0, 2, 1]
>>> cm3 = ConfusionMatrix(y_actu,y_pred)
>>> cp = Compare({"cm1":cm,"cm2":cm3},by_class=True,weight={1:1,2:1})
>>> cp = Compare({"cm1":cm,"cm2":cm3},by_class=True,class_weight={1:1,2:1})
Traceback (most recent call last):
...
pycm.pycm_obj.pycmCompareError: The class_weight type must be dictionary and also must be specified for all of the classes.
>>> cp = Compare({"cm1":cm,"cm2":cm3},by_class=True,weight=[])
>>> cp = Compare({"cm1":cm,"cm2":cm3},by_class=True,class_weight=[])
Traceback (most recent call last):
...
pycm.pycm_obj.pycmCompareError: The class_weight type must be dictionary and also must be specified for all of the classes.
Expand Down

0 comments on commit 84c54cd

Please sign in to comment.