kachayev/dataclasses-tensor

Easily serialize dataclasses to and from tensors (PyTorch, NumPy)

31
/ 100
Emerging

This tool helps you convert complex Python data structures, like a detailed game state or a watchlist of movies, into numerical arrays (tensors) that machine learning models can easily process. You provide your structured data, and it outputs a compact numerical representation. It's used by machine learning engineers or data scientists who need to prepare structured Python objects for model training or inference.

No commits in the last 6 months. Available on PyPI.

Use this if you need to transform Python data classes containing various types like numbers, enums, lists, or optional fields into a flat numerical tensor format for machine learning frameworks like PyTorch or NumPy.

Not ideal if your data structures involve recursive definitions (like linked lists or trees) or if you need to serialize strings or byte arrays directly into tensors.

data-preparation machine-learning-engineering tensor-conversion structured-data-processing
Stale 6m
Maintenance 0 / 25
Adoption 6 / 25
Maturity 25 / 25
Community 0 / 25

How are scores calculated?

Stars

18

Forks

Language

Python

License

MIT

Last pushed

Apr 10, 2021

Commits (30d)

0

Dependencies

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/kachayev/dataclasses-tensor"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.