A Framework for creating a boilerplate template for ai projects that are ready for MLOps
This Generator will create a ready-to-go pyPhase-Project, based on a config-Yaml.
pip install phases
name: myProject namespace: myGroup phases: - name: Phase1 description: my first phase exports: [myData] - name: Phase2 description: my second phase
name: "sleepClassificationCNN" namespace: tud.ibmt exporter: - ObjectExporter - KerasExporter publisher: - DotSience phases: prepareData: - name: DataWrapper description: get EDF Data exports: - trainingRaw - validationRaw - evaluationRaw - name: EDF4SleepStages description: Prepare EDF Data for sleep stage recognition exports: - trainingTransformed - validationTransformed train: - name: SleepPhaseDetectionModel description: Create Model for sleep stage recognition exports: - model evaluate: - name: SleepPhaseDetectionModel description: Create Model for sleep stage recognition
The generator will create stubs for each phase, publisher, storage, exporter and generator that does not exists in the pyPhase-Package. The stubs are in the project folder and implement empty method that are required.
To implement your project, you only need to fill those methods. For the minimal example you need
to fill the
main-methods of Phase1 (
myProject/phases/Phase1.py) and Phase2.
If you want to run the whole Project run:
python [ProjectName] for the minimal example:
To run a single stage:
python [ProjectName] [StageName] for the minimal example:
python myProject stage2
doc/placeholder for automated documentation
.editorconfigsome settings for supporting IDE about File encoding and formats (see https://editorconfig.org/)
.gitignoresome folders and files that should be ignored by git (see https://git-scm.com/docs/gitignore)
requirements.txtthe python requirements (just pyPhases in an empty project)
setup.pya python setup-file with some data (https://docs.python.org/3/installing/index.html#installing-index)
README.mdan Readme file that is used for git and python packages
Dockerfilea simple dockerfile that can be used to run the project in a container (The
FROMimage should properly changed)
docker-compose.ymlthis is a helper to create and run the container. simply run
docker compose run --rm [projectname] [stagename]
.gitlab-ci.ymla Configuration for the Gitlab-CI Pipeline, that will be automaticly run if there is a push to gitlab
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size phases-0.3.3.tar.gz (10.6 kB)||File type Source||Python version None||Upload date||Hashes View|