- Clone this directory with
git clone https://github.com/ExLeonem/tf-al-ext
- Replace the
ext
in the folder names as well as in the pyproject.toml with a personal extension. - Setup poetry and install dependencies
- Start developing and extending the package
- Share via github/pypi
To keep an easy and generic API across different extension, please keep following structure.
Directory name | Description |
---|---|
\wrapper |
Custom model wrappers. |
\score |
Custom scores to evaluate active learning experiments |
\utils |
For utility functions |
No fitting folder? Just create a custom one.
Follow the semantic versioning rule set. (v. Major.Minor.Patch)
To execute unit tests, type in following command:
poetry run pytest
To add another package dependency, execute following command
poetry add <package-name>
Likewise if you want to delete a dependency:
poetry remove <package-name>
Run following commands one after another.
poetry build
poetry publish
For other commands that are executeable check the documentation of poetry.