这个python包,在github上可以下载的到,https://github.com/17zuoye/pyirt。并且依赖于'numpy','scipy', cython','six'这些库。但是我没有找到关于这个包官方的API,只有一个简单的demo,不知论坛里的各位朋友,有没有用过的。
-----------------------------------------------------------------demo代码-------------------------------------------------------------
from pyirt
import irtsrc_fp
= open(file_path,
'r')
# alternatively, pass in list of tuples in the format of [(user_id, item_id, ans_boolean)]# ans_boolean is 0/1.# (1)Run by defaultitem_param, user_param
= irt(src_fp)
# (2)Supply boundsitem_param, user
-param
= irt(src_fp,
theta_bnds = [
-5,
5],
alpha_bnds=[
0.1,
3],
beta_bnds = [
-3,
3])
# (3)Supply guess parameterguessParamDict
= {
1:{
'c':
0.0},
2:{
'c':
0.25}}item_param, user_param
= irt(src_fp,
in_guess_param = guessParamDict)