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.6.tar.gz
(92.3 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.6-py3-none-any.whl
(104.1 kB
view details)
File details
Details for the file datagrid-1.0.6.tar.gz.
File metadata
- Download URL: datagrid-1.0.6.tar.gz
- Upload date:
- Size: 92.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9621940d631e638fe3a5f8d00f55e665c34f54ba6e892be1aaac319198c6dbda
|
|
| MD5 |
773e4c11d7b72f9930d8f1219188a684
|
|
| BLAKE2b-256 |
67afc1211f712b59d172417bdbb826545591d65abd12781f7563bd6cb74053df
|
File details
Details for the file datagrid-1.0.6-py3-none-any.whl.
File metadata
- Download URL: datagrid-1.0.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07d4890426ad41fd1286551c4294bf6ae4ac0f6d85f7c6f884ff8a4b0cc39100
|
|
| MD5 |
690d7d2b16e40010e0c97c3f0ed26d54
|
|
| BLAKE2b-256 |
d3f31dc033845bf0de69bd745ef7687573fea90eeac67094a5c48834ccf17708
|