Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/development_CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install dependencies
run: |
Expand Down
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ test-unit:
pytest tests
@echo 'unit tests OK'

lint:
pylint cobra
@echo 'lint OK'
black-check:
black --diff cobra/

lint-minimal:
pylint E cobra
@echo 'lint minimal OK'
black:
black cobra/

typecheck:
mypy cobra
mypy cobra --allow-redefinition --allow-untyped-globals --ignore-missing-imports
@echo 'typecheck OK'

codestyle:
Expand All @@ -38,4 +36,4 @@ docstyle:
pydocstyle cobra
@echo 'docstyle OK'

code-qa: typecheck codestyle docstyle lint-minimal
code-qa: typecheck codestyle docstyle
4 changes: 3 additions & 1 deletion cobra/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .version import __version__
"""Cobra module."""

from .version import __version__
22 changes: 13 additions & 9 deletions cobra/evaluation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""The evaluation module includes utils and plots to evaluate a created model."""

from .pigs_tables import generate_pig_tables
from .pigs_tables import compute_pig_table
from .pigs_tables import plot_incidence
Expand All @@ -11,12 +13,14 @@
# from .evaluator import Evaluator
from .evaluator import ClassificationEvaluator, RegressionEvaluator

__all__ = ["generate_pig_tables",
"compute_pig_table",
"plot_incidence",
"plot_performance_curves",
"plot_variable_importance",
"plot_univariate_predictor_quality",
"plot_correlation_matrix",
"ClassificationEvaluator",
"RegressionEvaluator"]
__all__ = [
"generate_pig_tables",
"compute_pig_table",
"plot_incidence",
"plot_performance_curves",
"plot_variable_importance",
"plot_univariate_predictor_quality",
"plot_correlation_matrix",
"ClassificationEvaluator",
"RegressionEvaluator",
]
Loading