Skip to content

Commit

Permalink
fix: remove src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
francescopisu committed Sep 24, 2023
1 parent 214ff7e commit 1cf5d37
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 13 deletions.
File renamed without changes.
8 changes: 6 additions & 2 deletions src/modelsight/__init__.py → modelsight/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# read version from installed package
from importlib.metadata import version

from src.modelsight import calibration
from modelsight import (
calibration,
curves
)

__all__ = [
"calibration"
"calibration",
"curves"
]

# __version__ = version("modelsight")
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions modelsight/calibration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .calib import hosmer_lemeshow_plot

__all__ = [
"hosmer_lemeshow_plot"
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Tuple
import matplotlib.pyplot as plt

from src.modelsight._typing import ArrayLike
from modelsight._typing import ArrayLike


def ntile_name(n: int) -> str:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src.modelsight.curves.roc import average_roc_curves
from src.modelsight.curves.compare import (
from .roc import average_roc_curves
from .compare import (
roc_single_comparison, roc_comparisons,
add_annotations
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from matplotlib import patches
import matplotlib.pyplot as plt

from src.modelsight.curves._delong import delong_roc_test
from src.modelsight._typing import CVModellingOutput
from modelsight.curves._delong import delong_roc_test
from modelsight._typing import CVModellingOutput

def annot_stat_vertical(text:str,
x: float,
Expand Down
2 changes: 1 addition & 1 deletion src/modelsight/curves/roc.py → modelsight/curves/roc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from sklearn.metrics import roc_curve
from scikits.bootstrap import bootstrap_indices as scikits_boot_indices

from src.modelsight._typing import CVModellingOutput, SeedType
from modelsight._typing import CVModellingOutput, SeedType


def average_roc_curves(cv_preds: Dict[str, CVModellingOutput],
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions src/modelsight/calibration/__init__.py

This file was deleted.

0 comments on commit 1cf5d37

Please sign in to comment.