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.5.tar.gz (92.2 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.5-py3-none-any.whl (104.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datagrid-1.0.5.tar.gz
  • Upload date:
  • Size: 92.2 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.5.tar.gz
Algorithm Hash digest
SHA256 f63c4f7b7b2b06e557bb55115ac77fde0c4564bdc86e5bf8c925ba95233d508f
MD5 555e79c5e06e4429cd1dc520e24d422b
BLAKE2b-256 7d8bc974663e658468f675e78907f7e591c05c8bede7839343a2decf5e6a45ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datagrid-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 104.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f7783e360f4f312f55fbd0c66b72a3e84247274b1359308be076ced17e876634
MD5 ed98ebfaa33f1e7d7101d25219a05fc4
BLAKE2b-256 5839636da6501c3e4386188b8cb3b6d90aa745c9903f12e8277df38ee862ab3e

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.3.5

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.0

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page