Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 913 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 913 Bytes

croissant converter

Usage

docker run --rm openml/croissant-converter generate_croissants.py --help
docker run --rm openml/croissant-converter upload_datasets_to_minio.py --help

Make sure you have a .env file to give to the uploader:

MINIO_ACCESS_KEY=[KEY]
MINIO_SECRET_KEY=[SECRET]

Example:

docker run --rm \
  -v ./data:/output \
  -v ~/.cache/openml:/home/unprivileged-user/.cache/openml \
  openml/croissant-converter:[VERSION] generate_croissants.py \
  --all \
  -o /output

docker run --rm \
  -v ./data:/input \
  --env-file .env \
  openml/croissant-converter:[VERSION] upload_datasets_to_minio.py \
  -i /input

Build and publish

Update the version in pyproject.toml. Use the same version in the following script:

docker build -f docker/Dockerfile --tag openml/croissant-converter:[VERSION] .
docker push openml/croissant-converter:[VERSION]