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
Log into comet.com to see results.
Metadata
Release files for datagrid 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datagrid-1.0.11.tar.gz | 93.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datagrid-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 198.1 kB
Release files / datagrid-1.0.11.tar.gz
| Download URL | datagrid-1.0.11.tar.gz |
|---|---|
| Size | 93.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2b2e556488d1a4077dd9d6d04e180d22c423c7e80398308ee80f7bf1140eb13
|
|
BLAKE2b-256 checksum How to use checksums |
611161fdf470ecec745098f95a0e6c97f6ef915fd9c75098f55e4824eac53015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / datagrid-1.0.11-py3-none-any.whl
| Download URL | datagrid-1.0.11-py3-none-any.whl |
|---|---|
| Size | 104.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b64c84c6ca5995a8d786a7a4de45517479c29c1415d9b1ca325e8b4d1da078e
|
|
BLAKE2b-256 checksum How to use checksums |
69229aab7adf5f0e9ce6bacfc2cbf08a995f34fc7061c0165d28b3517ab31f53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|