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

[gql] UMAP points strawman in streawberry #195

Closed
Tracked by #160
mikeldking opened this issue Jan 26, 2023 · 1 comment · Fixed by #196
Closed
Tracked by #160

[gql] UMAP points strawman in streawberry #195

mikeldking opened this issue Jan 26, 2023 · 1 comment · Fixed by #196
Assignees

Comments

@mikeldking
Copy link
Contributor

mikeldking commented Jan 26, 2023

Create a strawman representation of UMAP points and clusters in strewberry dataclasses

@mikeldking
Copy link
Contributor Author

Example query

query EmbeddingUMAPDriftCardQuery(
  $id: ID!
  $startTime: DateTime!
  $endTime: DateTime!
  $name: String!
  $category: DimensionCategory!
  $dataset: ModelDatasetInput!
  $referenceDataset: ModelDatasetInput
  $modelBaselineId: ID
  $nComponents: Int!
  $nNeighbors: Int!
  $minDist: Float!
  $datasetSampleSize: Int!
) {
  node(id: $id) {
    __typename
    ... on Model {
      dimension(startTime: $startTime, endTime: $endTime, name: $name, category: $category) {
        UMAPPoints(dataset: $dataset, referenceDataset: $referenceDataset, modelBaselineId: $modelBaselineId, nComponents: $nComponents, nNeighbors: $nNeighbors, minDist: $minDist, datasetSampleSize: $datasetSampleSize, referenceDatasetSampleSize: $datasetSampleSize) {
          data {
            coordinates {
              __typename
              ... on TwoDimensionalCoordinate {
                x
                y
              }
              ... on ThreeDimensionalCoordinate {
                x
                y
                z
              }
            }
            rawTextData
            linkToData
            predictionLabel
            actualLabel
            predictionScore
            actualScore
            predictionId
            uuid
          }
          referenceData {
            coordinates {
              __typename
              ... on TwoDimensionalCoordinate {
                x
                y
              }
              ... on ThreeDimensionalCoordinate {
                x
                y
                z
              }
            }
            rawTextData
            linkToData
            predictionLabel
            actualLabel
            predictionScore
            actualScore
            predictionId
            uuid
          }
          clusters {
            clusterId
            pointIds
            purityScore
          }
        }
      }
    }
    id
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants