Trane is a software package that automatically generates problems for temporal datasets and produces labels for supervised learning. Its goal is to streamline the machine learning problem-solving process.
Install
Install Trane using pip:
python -m pip install trane
Usage
Here's a quick demonstration of Trane in action:
import trane
data, metadata = trane.load_airbnb()
entity_columns = ["location"]
window_size = "2d"
problem_generator = trane.ProblemGenerator(
metadata=metadata,
window_size=window_size,
entity_columns=entity_columns
)
problems = problem_generator.generate()
print(f'Generated {len(problems)} problems.')
print(problems[108])
print(problems[108].create_target_values(data).head(5))
Output:
Generated 168 problems.
For each <location> predict the majority <rating> in all related records in the next 2 days.
location time target
0 London 2021-01-01 5
1 London 2021-01-03 4
2 London 2021-01-05 5
3 London 2021-01-07 4
4 London 2021-01-09 5
Community
- Questions or Issues? Create a GitHub issue.
- Want to Chat? Join our Slack community.
Cite Trane
If you find Trane beneficial, consider citing our paper:
Ben Schreck, Kalyan Veeramachaneni. What Would a Data Scientist Ask? Automatically Formulating and Solving Predictive Problems. IEEE DSAA 2016, 440-451.
BibTeX entry:
@inproceedings{schreck2016would,
title={What Would a Data Scientist Ask? Automatically Formulating and Solving Predictive Problems},
author={Schreck, Benjamin and Veeramachaneni, Kalyan},
booktitle={Data Science and Advanced Analytics (DSAA), 2016 IEEE International Conference on},
pages={440--451},
year={2016},
organization={IEEE}
}
Metadata
Release files for trane 0.6.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 | Provenance | Actions |
|---|---|---|---|---|
| trane-0.6.0.tar.gz | 4.4 MB | Without provenance | Details for trane-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trane-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for trane-0.6.0-py3-none-any.whl |
Total release size: 8.7 MB
Release files / trane-0.6.0.tar.gz
| Download URL | trane-0.6.0.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da60c1ecf25f0b76ea9bfbfb181c954cb86af0a3fb4580cac4c39422f7879c6d
|
|
BLAKE2b-256 checksum How to use checksums |
82c17863f713a91ec1b96c18a8d290b1959eeb354542ecdead7e1b7ce2430a21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / trane-0.6.0-py3-none-any.whl
| Download URL | trane-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
737b78b0bf96412029f8b627adcf5bab39292f0fc9e28b31a5ac2c8294542d7c
|
|
BLAKE2b-256 checksum How to use checksums |
ead008e94a7562bf0adc2d47a89ef831fff648cbaf21c14b1b63bb0cf4a2c774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for trane 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.