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.
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.10.tar.gz
(93.1 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.10-py3-none-any.whl
(104.8 kB
view details)
File details
Details for the file datagrid-1.0.10.tar.gz.
File metadata
- Download URL: datagrid-1.0.10.tar.gz
- Upload date:
- Size: 93.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1f171adf9b0c1d3420f1b32ac1c8ef01656db22f6d8051db6d33eb39afb9450
|
|
| MD5 |
422b179e516690e6d624347512585f41
|
|
| BLAKE2b-256 |
4a954368cc393cab74e3a4a0a65e3cf2e615b8be1d424720a9993e047bdee0bf
|
File details
Details for the file datagrid-1.0.10-py3-none-any.whl.
File metadata
- Download URL: datagrid-1.0.10-py3-none-any.whl
- Upload date:
- Size: 104.8 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 |
82135bfb32f7b4d4cd36aff88f57236e6e3c901fc32d104d03c861f76ef6991e
|
|
| MD5 |
534bf37a810788be53935fdb6bf82ea9
|
|
| BLAKE2b-256 |
f3f882cf94b2a770f1c706c815f81f3af3e5d90de1f4c7f4dda4a84da98da785
|