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

Backend: Add stats JSON object to BackendResponse #8

Open
leriomaggio opened this issue Oct 29, 2021 · 0 comments
Open

Backend: Add stats JSON object to BackendResponse #8

leriomaggio opened this issue Oct 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@leriomaggio
Copy link
Member

Continuing in this issue the conversation started in the latest PR

(@OliverDavis comment)

How about this as a return object for both the annotate and forget endpoints?

{ "data": [current return object], "stats": {name, value for model fit stats} }

RE: I think that makes lots of sense. Also, appending the new stats objects to the current backend response is super quick to do too.

I think we should just decide what the stats object should contain, and which metric we want to calculate.

One first hypothesis can be to generate a per-class score (e.g. per-class precision), along with an overall score for all the faces currently on the board.

In other words, the stats object can have the following structure:

{
  stats: { 
      happy: happy score in [0, 1]
      sad: sad score  in [0, 1]
      angry: angry score  in [0, 1]
      disgust: disgust score  in [0, 1]
      fear: fear score  in [0, 1]
      surprise: surprise score  in [0, 1]
      overall: overall global score  in [0, 1]
}

When a new face will come in, updated scores for old 24 + 1 faces on the board will be returned.

Would that make any sense?

@leriomaggio leriomaggio self-assigned this Oct 29, 2021
@leriomaggio leriomaggio added the enhancement New feature or request label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant