Python tools to submit algo on the Substra platform
Project description
Substra-tools
Python package defining base classes for assets submitted on the platform:
- Objective: metrics script
- Algo: algo script
- Dataset: data opener script
This repository also contains a Dockerfile to execute the user Python scripts on the Substra platform. This is currently needed to easily have substratools package available inside the Docker image without using a pypi server.
Getting started
To install the substratools Python package, run the following command:
pip install substratools
Pull the substra-tools Docker image
docker pull ghcr.io/substra/substra-tools:0.16.0-nvidiacuda11.6.0-base-ubuntu20.04-python3.9-workflows
Developers
Clone the repository: https://github.com/Substra/substra-tools
Build the Docker image from source
docker build -f Dockerfile .
or for the minimal image (based on alpine):
docker build -f Dockerfile.minimal .
or for the workflows image (contains additional data science dependencies):
docker build -f Dockerfile.workflows .
Setup
To setup the project in development mode, run:
pip install -e ".[test]"
To run all tests, use the following command:
python setup.py test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for substratools-0.18.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfac3ba14c11aa366a1ad4ad3a5c43176de769cb9c2140bd59e9f262e09c9c62 |
|
MD5 | a7ac5628c248119a4061940ba58528d4 |
|
BLAKE2b-256 | 3b890eaf9e9c8698a5382874ccdd3cd92155d2cb018071cb4e49224039d7032f |