Skip to content

melaanya/f_macro_optimization

Repository files navigation

Dev requirements

Install pyenv

git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc

Install poetry

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
export PATH="$HOME/.poetry/bin:$PATH"

Initialize poetry environment

cd /path/to/project/f_macro_optimization
pyenv install 3.8.6
pyenv local 3.8.6
poetry shell
poetry install  # install the defined dependencies for the project

Run the script

# spawn a shell within your virtual environment
poetry shell
python <script>

# or you can directly run
poetry run python <script>

IDE plugins:

* flake8
* black
* mypy

Pre-commit hook

pre-commit install

About

Threshold optimization for F measure of macro-averaged precision and recall

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages