Skip to content

Instantly share code, notes, and snippets.

@eddyxu
Created January 27, 2022 05:26
Show Gist options
  • Save eddyxu/48165e32f69323b6e7b56acc5114b6b4 to your computer and use it in GitHub Desktop.
Save eddyxu/48165e32f69323b6e7b56acc5114b6b4 to your computer and use it in GitHub Desktop.
SELECT
image_id,
image,
detection,
entropy(detection.scores) as entropy
FROM (
SELECT
image_id,
image,
explode(ML_PREDICT(class_scores, image)) AS detection
FROM coco
) ORDER BY entropy DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment