activeloopai / activeloopai/deeplake

htype for tensors containing only numbers

Ouverte
#1,553 3 commentaires 0 réactions 1 personne assignée Réclamée par @istranic Voir sur GitHub
Langage dominant
C++
Étoiles
9.2k
Forks
722
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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`?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.