Skip to main content

datagrid

Create a datagrid of mixed-media items, and log to comet.com.

Installation

pip install datagrid

Example

The following demo program will log 100 random images, scores, and categories:

from comet_ml import start
from datagrid import DataGrid, Image

import random
from PIL import Image as PImage
import requests

experiment = start(project_name="datagrids")

categories = ["sunset", "landscape", "water", "tree", "city"]

dg = DataGrid(
    columns=["Image", "Score", "Category"],
    name="Demo"
)
url = "https://picsum.photos/200/300"
for i in range(100):
    im = PImage.open(requests.get(url, stream=True).raw)
    category = random.choice(categories)
    score = random.random()
    image = Image(im, metadata={"category": category, "score": score})
    dg.append([image, score, category])

dg.log(experiment)
experiment.end()

Visualization

image

Log into comet.com to see results.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datagrid-1.0.14.tar.gz (93.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datagrid-1.0.14-py3-none-any.whl (105.4 kB view details)

Uploaded Python 3

File details

Details for the file datagrid-1.0.14.tar.gz.

File metadata

  • Download URL: datagrid-1.0.14.tar.gz
  • Upload date:
  • Size: 93.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for datagrid-1.0.14.tar.gz
Algorithm Hash digest
SHA256 aff672df15d5685cdf603702db43958630abdc1221d2c4d8304b01e4eba95266
MD5 e8186cdd3ad81d214faac5f52bfbf3ad
BLAKE2b-256 3ee169aa282d7df2d362fa72860f47162e52c0ae022665778a8e6c3938839a4b

See more details on using hashes here.

File details

Details for the file datagrid-1.0.14-py3-none-any.whl.

File metadata

  • Download URL: datagrid-1.0.14-py3-none-any.whl
  • Upload date:
  • Size: 105.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for datagrid-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 f777474f9632f028f6d0b2d3719559d902b5d8c23b7e709b5051d163a1e54b73
MD5 13549c654a1112e88f214b57825b2491
BLAKE2b-256 beb91b32f626222a53d8c015ecfff33650777605c1defd37d7d425e90ee9d9d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page