mlquantify 0.1.8__py3-none-any.whl → 0.1.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mlquantify/__init__.py +10 -29
- mlquantify/adjust_counting/__init__.py +24 -0
- mlquantify/adjust_counting/_adjustment.py +648 -0
- mlquantify/adjust_counting/_base.py +245 -0
- mlquantify/adjust_counting/_counting.py +153 -0
- mlquantify/adjust_counting/_utils.py +109 -0
- mlquantify/base.py +117 -519
- mlquantify/base_aggregative.py +209 -0
- mlquantify/calibration.py +1 -0
- mlquantify/confidence.py +329 -0
- mlquantify/likelihood/__init__.py +5 -0
- mlquantify/likelihood/_base.py +147 -0
- mlquantify/likelihood/_classes.py +430 -0
- mlquantify/meta/__init__.py +1 -0
- mlquantify/meta/_classes.py +785 -0
- mlquantify/metrics/__init__.py +21 -0
- mlquantify/metrics/_oq.py +109 -0
- mlquantify/metrics/_rq.py +98 -0
- mlquantify/{evaluation/measures.py → metrics/_slq.py} +51 -36
- mlquantify/mixture/__init__.py +7 -0
- mlquantify/mixture/_base.py +147 -0
- mlquantify/mixture/_classes.py +458 -0
- mlquantify/mixture/_utils.py +163 -0
- mlquantify/model_selection/__init__.py +9 -0
- mlquantify/model_selection/_protocol.py +358 -0
- mlquantify/model_selection/_search.py +315 -0
- mlquantify/model_selection/_split.py +1 -0
- mlquantify/multiclass.py +350 -0
- mlquantify/neighbors/__init__.py +9 -0
- mlquantify/neighbors/_base.py +168 -0
- mlquantify/neighbors/_classes.py +150 -0
- mlquantify/{classification/methods.py → neighbors/_classification.py} +37 -62
- mlquantify/neighbors/_kde.py +268 -0
- mlquantify/neighbors/_utils.py +131 -0
- mlquantify/neural/__init__.py +1 -0
- mlquantify/utils/__init__.py +47 -2
- mlquantify/utils/_artificial.py +27 -0
- mlquantify/utils/_constraints.py +219 -0
- mlquantify/utils/_context.py +21 -0
- mlquantify/utils/_decorators.py +36 -0
- mlquantify/utils/_exceptions.py +12 -0
- mlquantify/utils/_get_scores.py +159 -0
- mlquantify/utils/_load.py +18 -0
- mlquantify/utils/_parallel.py +6 -0
- mlquantify/utils/_random.py +36 -0
- mlquantify/utils/_sampling.py +273 -0
- mlquantify/utils/_tags.py +44 -0
- mlquantify/utils/_validation.py +447 -0
- mlquantify/utils/prevalence.py +64 -0
- {mlquantify-0.1.8.dist-info → mlquantify-0.1.10.dist-info}/METADATA +2 -1
- mlquantify-0.1.10.dist-info/RECORD +53 -0
- mlquantify/classification/__init__.py +0 -1
- mlquantify/evaluation/__init__.py +0 -14
- mlquantify/evaluation/protocol.py +0 -289
- mlquantify/methods/__init__.py +0 -37
- mlquantify/methods/aggregative.py +0 -1159
- mlquantify/methods/meta.py +0 -472
- mlquantify/methods/mixture_models.py +0 -1003
- mlquantify/methods/non_aggregative.py +0 -136
- mlquantify/methods/threshold_optimization.py +0 -869
- mlquantify/model_selection.py +0 -377
- mlquantify/plots.py +0 -367
- mlquantify/utils/general.py +0 -371
- mlquantify/utils/method.py +0 -449
- mlquantify-0.1.8.dist-info/RECORD +0 -22
- {mlquantify-0.1.8.dist-info → mlquantify-0.1.10.dist-info}/WHEEL +0 -0
- {mlquantify-0.1.8.dist-info → mlquantify-0.1.10.dist-info}/top_level.txt +0 -0
mlquantify/__init__.py
CHANGED
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
"mlquantify, a Python package for quantification"
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
from . import neighbors
|
|
4
|
+
from . import likelihood
|
|
5
|
+
from . import mixture
|
|
6
|
+
from . import meta
|
|
7
|
+
from . import adjust_counting
|
|
8
|
+
from . import model_selection
|
|
9
|
+
from . import base_aggregative
|
|
5
10
|
from . import base
|
|
6
|
-
|
|
7
|
-
from . import
|
|
8
|
-
from . import
|
|
9
|
-
from . import evaluation
|
|
10
|
-
from . import methods
|
|
11
|
-
from . import utils
|
|
12
|
-
|
|
13
|
-
ARGUMENTS_SETTED = False
|
|
14
|
-
|
|
15
|
-
arguments = {
|
|
16
|
-
"y_pred": None,
|
|
17
|
-
"posteriors_train": None,
|
|
18
|
-
"posteriors_test": None,
|
|
19
|
-
"y_labels": None,
|
|
20
|
-
"y_pred_train": None,
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
def set_arguments(y_pred=None, posteriors_train=None, posteriors_test=None, y_labels=None, y_pred_train=None):
|
|
24
|
-
global ARGUMENTS_SETTED
|
|
25
|
-
global arguments
|
|
26
|
-
arguments["y_pred"] = y_pred
|
|
27
|
-
arguments["posteriors_train"] = posteriors_train.to_numpy() if isinstance(posteriors_train, pandas.DataFrame) else posteriors_train
|
|
28
|
-
arguments["posteriors_test"] = posteriors_test.to_numpy() if isinstance(posteriors_test, pandas.DataFrame) else posteriors_test
|
|
29
|
-
arguments["y_labels"] = y_labels
|
|
30
|
-
arguments["y_pred_train"] = y_pred_train
|
|
31
|
-
|
|
32
|
-
ARGUMENTS_SETTED = True
|
|
11
|
+
from . import calibration
|
|
12
|
+
from . import confidence
|
|
13
|
+
from . import multiclass
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from ._counting import (
|
|
2
|
+
CC,
|
|
3
|
+
PCC
|
|
4
|
+
)
|
|
5
|
+
from ._adjustment import (
|
|
6
|
+
ThresholdAdjustment,
|
|
7
|
+
MatrixAdjustment,
|
|
8
|
+
FM,
|
|
9
|
+
GAC,
|
|
10
|
+
GPAC,
|
|
11
|
+
ACC,
|
|
12
|
+
X_method,
|
|
13
|
+
MAX,
|
|
14
|
+
T50,
|
|
15
|
+
MS,
|
|
16
|
+
MS2,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
from ._utils import (
|
|
20
|
+
compute_table,
|
|
21
|
+
compute_fpr,
|
|
22
|
+
compute_tpr,
|
|
23
|
+
evaluate_thresholds,
|
|
24
|
+
)
|