Tool for exploring columnar data, including multimedia
Project description
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.
Project details
Release history Release notifications | RSS feed
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.15.tar.gz
(90.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
datagrid-1.0.15-py3-none-any.whl
(101.5 kB
view details)
File details
Details for the file datagrid-1.0.15.tar.gz.
File metadata
- Download URL: datagrid-1.0.15.tar.gz
- Upload date:
- Size: 90.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e97c93702584b4022d984f3cf2e929355b278d0e4602bdaa4d081ee4e891f0ce
|
|
| MD5 |
6f35fea89c1cb5a92e09c4a0873479ea
|
|
| BLAKE2b-256 |
1fa8303af7ea8ac45698269833f7a9446edf1b3f0e47f926095e3a2ce48e94d6
|
File details
Details for the file datagrid-1.0.15-py3-none-any.whl.
File metadata
- Download URL: datagrid-1.0.15-py3-none-any.whl
- Upload date:
- Size: 101.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3d4f86d7c5a787c9721d08abf3a28cfafb01ec8c90d806e2d3f98cde7628c41
|
|
| MD5 |
6b31d7ad0c1238d95bc55dbd88618f7d
|
|
| BLAKE2b-256 |
028dfae25f90558ad80a091b0097b321a0d2a2b0bcf9ad965f48f710d2357bb2
|