torchtable
Torchtable is a library for handling tabular datasets in PyTorch. It is heavily inspired by torchtext and uses a similar API but without some of the limitations (e.g. only one field per column). Torchtable aims to be simple to use and easily extensible. It provides sensible defaults while allowing the user to define their own custom pipelines, putting all of this behind an intuitive interface.
Installation
Install via pip.
$ pip install torchtable
Documentation
Documentation is a work in progress, but the current docs can be read here. In addition, you can read the notebooks in the examples directory or dev_nb directory to learn more.
Usage
Torchtable uses a declarative API similar to torchtext. Here is an example of how you might handle an imaginary dataset where you are supposed to predict the price of some product.
>>> train = TabularDataset.from_csv('data/train.csv',
... fields={'seller_id': CategoricalField(min_freq=3),
... 'timestamp': [DayofWeekField(), HourField()],
... 'price': NumericalField(fill_missing="median", is_target=True)
... })
...
See the examples directory for more examples.
TODO
Add more models
Implement default field selection
Implement text field/operations
Implement swap noise
Implement input/output validation
Metadata
Release files for torchtable 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torchtable-0.1.0.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torchtable-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.8 kB
Release files / torchtable-0.1.0.tar.gz
| Download URL | torchtable-0.1.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cc9575905226c0ad6c701d03017402f7a7187d189b8da5023ce04f2cb1aa860
|
|
BLAKE2b-256 checksum How to use checksums |
11e74332b142118efb307ee91e24841f5ce781c06e6427fb6d851bc9eef2202b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / torchtable-0.1.0-py3-none-any.whl
| Download URL | torchtable-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29b5768fb6ee3195eea3dc8e23d3b072e17fff2d69aa1e2309b8cc1ccbbfb4b1
|
|
BLAKE2b-256 checksum How to use checksums |
d7a40eab2395179abce676828882466e41991de388fa9235f0795db349c8dc1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|