Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nb_actions returned by project_set_get_user_stats can decrease #65

Open
jiho opened this issue Mar 22, 2023 · 2 comments
Open

nb_actions returned by project_set_get_user_stats can decrease #65

jiho opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jiho
Copy link
Contributor

jiho commented Mar 22, 2023

In project 185 project_set_get_user_stats() returns (partial output)

[{'activities': [{'id': 106,
                 'last_annot': '2023-02-14T06:00:34',
                 'nb_actions': 500},
                {'id': 4,
                 'last_annot': '2023-03-22T14:45:06',
                 'nb_actions': 48495},
                {'id': 993,
                 'last_annot': '2023-03-22T14:48:46',
                 'nb_actions': 5},
...
 'annotators': [{'id': 106, 'name': 'Annotateur'},
                {'id': 4, 'name': 'Jean-Olivier Irisson'},
                {'id': 993, 'name': 'Test API user'},

I have ~48,500 actions while the project has 8000 objects. I suspect that many of these actions are due to numerous "reset to predicted".

When I perform new classifications, nb_actions does not change (note the change of last_annot but no change in nb_actions

[{'activities': [{'id': 106,
                 'last_annot': '2023-02-14T06:00:34',
                 'nb_actions': 500},
                {'id': 4,
                 'last_annot': '2023-03-22T14:55:15',
                 'nb_actions': 48495},
                {'id': 993,
                 'last_annot': '2023-03-22T14:48:46',
                 'nb_actions': 5},

When user 993 performs classifications, his nb_actions increases, mine decreases (by 2 here):

[{'activities': [{'id': 106,
                 'last_annot': '2023-02-14T06:00:34',
                 'nb_actions': 500},
                {'id': 4,
                 'last_annot': '2023-03-22T14:55:15',
                 'nb_actions': 48493},
                {'id': 993,
                 'last_annot': '2023-03-22T14:56:52',
                 'nb_actions': 7},

I would expect nb_actions to never decrease.

@jiho jiho added the bug Something isn't working label Mar 22, 2023
@grololo06
Copy link
Member

It is most likely due to current state of the objects (which counts as 1 action) and the fact that we don't always keep history, so new classif (overriding current state) + no history kept -> decreasing count.
I would need to know which classifications were made, manual, prediction?

@jiho
Copy link
Contributor Author

jiho commented Mar 23, 2023

Not sure I get this:

It is most likely due to current state of the objects (which counts as 1 action) and the fact that we don't always keep history, so new classif (overriding current state) + no history kept -> decreasing count.

completely.

The new classif in the tests above were manual classifications, as me or as Test API user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants