-----------------------------------------------------------------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)