17zuoye / pyirt

A python library of IRT algorithm
MIT License
99 stars 54 forks source link

Duplicate logs #23

Open hiromakimaki opened 3 years ago

hiromakimaki commented 3 years ago

@junchenfeng Hello.

When I executed a simple code, I found duplicate logs as follows. As you see, half of these are unnecessary logs.

2021-07-07 14:56:12 INFO: start loading data
start loading data
2021-07-07 14:56:12 INFO: data loaded
data loaded
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 281.77it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 321.18it/s]
2021-07-07 14:56:12 DEBUG: E step runs for 322.238 sec
E step runs for 322.238 sec
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 238.91it/s]
2021-07-07 14:56:12 DEBUG: M step runs for 153.022 sec
M step runs for 153.022 sec
2021-07-07 14:56:12 DEBUG: score calculating
score calculating
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 3794.03it/s]
2021-07-07 14:56:12 DEBUG: score calculated.
score calculated.
2021-07-07 14:56:12 DEBUG: 0.6018582902998789
0.6018582902998789
2021-07-07 14:56:12 DEBUG: stop condition runs for 120.155 sec
stop condition runs for 120.155 sec
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 222.29it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 102.90it/s]
2021-07-07 14:56:13 DEBUG: E step runs for 339.617 sec
E step runs for 339.617 sec
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 172.94it/s]
2021-07-07 14:56:13 DEBUG: M step runs for 169.493 sec
M step runs for 169.493 sec
2021-07-07 14:56:13 DEBUG: score calculating
score calculating
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2362.32it/s]
2021-07-07 14:56:13 DEBUG: score calculated.
score calculated.
2021-07-07 14:56:13 DEBUG: 0.6018582902998789
0.6018582902998789
2021-07-07 14:56:13 INFO: EM converged at iteration 2.
EM converged at iteration 2.
2021-07-07 14:56:13 DEBUG: stop condition runs for 114.175 sec
stop condition runs for 114.175 sec
2021-07-07 14:56:13 INFO: parameter estimated
parameter estimated
2021-07-07 14:56:13 INFO: parameter retrieved
parameter retrieved

This is the code I executed:

from pyirt import irt

input = [
    ('user_0', 'item_0', 0),
    ('user_1', 'item_0', 1)
]

item_param, user_param = irt(input)