Skip to content

Commit

Permalink
🐛 make all imports explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed Jun 6, 2024
1 parent 4c8e16d commit 063215b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/njab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
from importlib.metadata import version

from . import stats, sklearn, plotting, pandas, io
from njab import stats, sklearn, plotting, pandas, io

__version__ = version('njab')

Expand Down
10 changes: 5 additions & 5 deletions src/njab/sklearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import pandas as pd
import sklearn
import sklearn.model_selection

from mrmr import mrmr_classif

from .types import Splits, ResultsSplit, Results, AucRocCurve, PrecisionRecallCurve
from .pca import run_pca
from .preprocessing import StandardScaler
from . import scoring
from njab.sklearn import scoring
from njab.sklearn.pca import run_pca
from njab.sklearn.preprocessing import StandardScaler
from njab.sklearn.types import (AucRocCurve, PrecisionRecallCurve, Results,
ResultsSplit, Splits)

__all__ = [
'run_model',
Expand Down
4 changes: 2 additions & 2 deletions src/njab/sklearn/scoring.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import numpy as np
import pandas as pd
import sklearn.metrics as sklm
import numpy as np

from .types import Results
from njab.sklearn.types import Results


class ConfusionMatrix():
Expand Down
4 changes: 2 additions & 2 deletions src/njab/stats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
and differential analysis of continuous variables between groups
using t-tests.
"""
from . import ancova
from .groups_comparision import diff_analysis, binomtest
from njab.stats import ancova
from njab.stats.groups_comparision import binomtest, diff_analysis

__all__ = ['ancova', 'diff_analysis', 'binomtest']

0 comments on commit 063215b

Please sign in to comment.