Skip to content

Implement the <ScatterPlot /> for EMBEDDINGS <Detail /> (reference) #258

@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 will show the position of the embeddings and the centroid.

URL: GET /{model_uuid}/reference/embeddings

DTO: we need the reference_embeddings field to rendere the <ScatterPlot />

{
  "reference_embeddings_metrics": {     
    "n_comp": 2,
    "n_cluster": 5,
    "inertia": 152.75,
    "sil_score": 0.48
  },
  "reference_embeddings": {    // < - - - - - - - - - HERE
    "centroid": {     // This is to render the centroid
      "x": 0.0,
      "y": 0.0
    },
    "values": [     // There are the values that we use to show the data on the chart
      {
        "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": {
    "buckets": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0],
    "reference_values": [15, 25, 10, 5, 3],  // Same as reference for comparison
  },
}

Acceptance Criteria

The 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