Skip to content

Implement the distribution <BarChart /> for EMBEDDINGS <Detail /> (reference) #257

@lucataglia

Description

@lucataglia

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Please describe your task requirements

Image

This chart is the same of the NumericalFeature (DataQuality Binary)

URL: GET /{model_uuid}/reference/embeddings

DTO: we need the histogram to rendere the <BarChart />

{
  "reference_embeddings_metrics": {     
    "n_comp": 2,
    "n_cluster": 5,
    "inertia": 152.75,
    "sil_score": 0.48
  },
  "reference_embeddings": {    
    "centroid": {     
      "x": 0.0,
      "y": 0.0
    },
    "values": [     
      {
        "timestamp": 1627849200,
        "x": 1.23,
        "y": 4.56
      },
      {
        "timestamp": 1627849260,
        "x": 2.34,
        "y": 5.67
      },
      {
        "timestamp": 1627849320,
        "x": 3.45,
        "y": 6.78
      }
    ]
  },
  "histogram": {     // < - - - - - - - - - HERE
    "buckets": [0.0, 1.0, 2.0, 3.0, 4.0],
    "reference_values": [15, 25, 10, 5, 3],  // Same as reference for comparison
  },
}

Acceptance Criteria

The distribution is available for the user

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions