Dataset2Vec
Introduction
This package aims to implement the approach proposed in Dataset2Vec: Learning Dataset Meta-Features by Jomaa et al. This package makes the training Dataset2Vec dataset encoder much more approachable by providing an API that is compatible with pytorch-lightning's trainer API. The output logs including tensorboard and checkpoints are stored in lightning_logs or in default_root_dir from pytroch_lightning.Trainer if specified.
Installation
To install the package run the following command (you need Python 3.9 or higher):
pip install -r requirements.txt
Usage
Here is a simple example of the usage of the package:
from pathlib import Path
from pytorch_lightning import Trainer
from dataset2vec import (
Dataset2Vec,
Dataset2VecLoader,
RepeatableDataset2VecLoader,
)
train_loader = Dataset2VecLoader(Path("data/train")) # Path with .csv files
val_loader = RepeatableDataset2VecLoader(
Path("data/val")
) # Path with .csv files
model = Dataset2Vec()
trainer = Trainer(
max_epochs=2, log_every_n_steps=1, default_root_dir="output_logs"
) # output of the training will be stored in output_logs
trainer.fit(model, train_loader, val_loader)
Development
Here are the snippets useful for the development of the package:
./scripts/check_code.sh- runs code quality checking usingblack,flake8,isortandmypy.pytest- runs all unit testscd docs && make html- generates documentationpython -m build- build the packagetwine upload dist/*- uploads the package to PyPI
Metadata
Release files for dataset2vec 1.0.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 |
|---|---|---|---|---|
| dataset2vec-1.0.0.tar.gz | 19.8 kB | Without provenance | Details for dataset2vec-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dataset2vec-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dataset2vec-1.0.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / dataset2vec-1.0.0.tar.gz
| Download URL | dataset2vec-1.0.0.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f1bce2cf0daeae73302b6a7058f7114c2af2d1319e897ff87c28109a5a00f9c
|
|
BLAKE2b-256 checksum How to use checksums |
bd0a6beae3e5a8c0a1c56ad9852ea841c73d12b696869141cebc7046c3ce40ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Release files / dataset2vec-1.0.0-py3-none-any.whl
| Download URL | dataset2vec-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cd4729b5a5de37277c550533b276e1c976161443b5647fbabfc80af8291a2e3
|
|
BLAKE2b-256 checksum How to use checksums |
13a4dd630a06cf7f8af2c6e2a4925a43c97b525d707b3265c9e9a0838b7aab99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Security for dataset2vec 1.0.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.