Skip to content

Commit

Permalink
[tests] for STE
Browse files Browse the repository at this point in the history
  • Loading branch information
tswsxk committed Jun 27, 2021
1 parent 9b48285 commit 139139c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/dina/gd/test_gddina.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# coding: utf-8
# 2021/4/23 @ tongshiwei

import pytest
from EduCDM import GDDINA


def test_train(data, conf, tmp_path):
@pytest.mark.parametrize("ste", [True, False])
def test_train(data, conf, tmp_path, ste):
user_num, item_num, knowledge_num = conf
cdm = GDDINA(user_num, item_num, knowledge_num)
cdm = GDDINA(user_num, item_num, knowledge_num, ste=ste)
cdm.train(data, test_data=data, epoch=2)
filepath = tmp_path / "dina.params"
cdm.save(filepath)
Expand Down

0 comments on commit 139139c

Please sign in to comment.