activeloopai / activeloopai/deeplake
htype for tensors containing only numbers
- Dominant language
- C++
- Stars
- 9.2k
- Forks
- 722
- PR merge metrics
- No merged PRs in 30d
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`?
Contributor guide
Assessment
This issue has not been assessed yet.