Utilities for scikit learn
The main entrypoint is the skutils
CLI program
skutils supervised run -i data.csv -o my_outputs/
skutils supervised score -i my_outputs/ -o my_outputs/scores/
skutils supervised visualize -i my_outputs/ -o my_outputs/visualizations/
For the full list of command line options, use the help option
skutils -h
skutils supervised -h
skutils supervised run -h
...
TODO
PKG_PATH="path/to/scikit-utils"
git clone git@github.com:alexarmstrongvi/scikit-utils.git "$PKG_PATH"
pip install --editable "$PKG_PATH[dev]"
Manually run tests and checks from within the package dir
# PyTest
cd $PKG_DIR
pytest
# Coverage checker
coverage run -m pytest
coverage report
# Linting and Formatting
flake8
pylint .
isort --check .
# Complexity checker
radon cc . # replace cc with raw, mi, or hal
# Environment tests
tox run-parallel
To followup on a specific file
pytest path/to/file.py
python -m doctest -v path/to/file.py
coverage report -m path/to/file.py
flake8 path/to/file.py
pylint path/to/file.py
isort --check --diff path/to/file.py
radon cc path/to/file.py
When ready to autoformat the code or run all pre-commit modifications
isort "$PKG_PATH"
pre-commit run --all-files
TODO