Skip to content

Commit

Permalink
rename test function
Browse files Browse the repository at this point in the history
  • Loading branch information
ViviHong200709 committed Oct 22, 2021
1 parent 416dfdb commit 83b7776
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EduCDM/IRT/GD/IRT.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import torch.nn.functional as F
from tqdm import tqdm
from ..irt import irt3pl
from sklearn.metrics import roc_auc_score, accuracy_score, classification_report
from sklearn.metrics import roc_auc_score, accuracy_score


class IRTNet(nn.Module):
Expand Down
2 changes: 1 addition & 1 deletion tests/irt/gd/test_gdirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_train(data, conf, tmp_path):
cdm.load(filepath)


def test_raises(data, conf, tmp_path):
def test_exception(data, conf, tmp_path):
try:
user_num, item_num = conf
cdm = GDIRT(user_num, item_num, value_range=10, a_range=100)
Expand Down
2 changes: 1 addition & 1 deletion tests/mirt/test_mirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_train(data, conf, tmp_path):
cdm.load(filepath)


def test_raises(data, conf, tmp_path):
def test_exception(data, conf, tmp_path):
try:
user_num, item_num = conf
cdm = MIRT(user_num, item_num, 10, a_range=100)
Expand Down

0 comments on commit 83b7776

Please sign in to comment.