activeloopai / activeloopai/deeplake

htype for tensors containing only numbers

Offen
#1,553 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @istranic Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
9.2k
Forks
722
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I am wondering what `htype` to use for a tensor containing only numbers.

In the tutorial [Creating Time-Series Datasets](https://docs.activeloop.ai/hub-tutorials/creating-time-series-datasets), the tensors containing only numbers are not given any `htype` which from what I understand would default to `htype=generic` for those tensors with `dtype=None`. ([Source](https://github.com/activeloopai/Hub/blob/225179dd0ca34509a074eba2b8b7acd70f982fbd/hub/htype.py#L38))

Moreover, from the `HTYPE_CONFIGURATIONS` ([Source](https://github.com/activeloopai/Hub/blob/225179dd0ca34509a074eba2b8b7acd70f982fbd/hub/htype.py#L47)) it seems there is no specific `htype` for numbers (`int` or `float`).

Should I therefore define a custom `htype` and `dtype` for the tensors that contains only numbers by myself, or use `htype=text`?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.