mlquantify 0.1.24__tar.gz → 0.1.25__tar.gz
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-0.1.24/mlquantify.egg-info → mlquantify-0.1.25}/PKG-INFO +1 -1
- mlquantify-0.1.25/VERSION.txt +1 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/confidence.py +5 -6
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_validation.py +0 -6
- {mlquantify-0.1.24 → mlquantify-0.1.25/mlquantify.egg-info}/PKG-INFO +1 -1
- mlquantify-0.1.24/VERSION.txt +0 -1
- {mlquantify-0.1.24 → mlquantify-0.1.25}/LICENSE +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/MANIFEST.in +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/README.md +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/adjust_counting/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/adjust_counting/_adjustment.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/adjust_counting/_base.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/adjust_counting/_counting.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/adjust_counting/_utils.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/base.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/base_aggregative.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/calibration.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/likelihood/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/likelihood/_classes.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/meta/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/meta/_classes.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/metrics/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/metrics/_oq.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/metrics/_rq.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/metrics/_slq.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/mixture/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/mixture/_base.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/mixture/_classes.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/mixture/_utils.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/model_selection/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/model_selection/_protocol.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/model_selection/_search.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/model_selection/_split.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/multiclass.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neighbors/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neighbors/_base.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neighbors/_classes.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neighbors/_classification.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neighbors/_kde.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neighbors/_utils.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neural/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neural/_base.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neural/_classes.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neural/_perm_invariant.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/neural/_utils.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/__init__.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_artificial.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_constraints.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_context.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_decorators.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_exceptions.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_get_scores.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_load.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_parallel.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_random.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_sampling.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/_tags.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify/utils/prevalence.py +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify.egg-info/SOURCES.txt +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify.egg-info/dependency_links.txt +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify.egg-info/requires.txt +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/mlquantify.egg-info/top_level.txt +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/setup.cfg +0 -0
- {mlquantify-0.1.24 → mlquantify-0.1.25}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.25
|
|
@@ -166,10 +166,10 @@ class ConfidenceEllipseSimplex(BaseConfidenceRegion):
|
|
|
166
166
|
.. math::
|
|
167
167
|
|
|
168
168
|
CE_{\alpha}(\pi) =
|
|
169
|
-
|
|
170
|
-
1 &
|
|
171
|
-
0 &
|
|
172
|
-
|
|
169
|
+
begin{cases}
|
|
170
|
+
1 & \text{if} (\pi - \mu)^T \Sigma^{-1} (\pi - \mu) \le \chi^2_{n-1}(1-\alpha) \\
|
|
171
|
+
0 & \text{otherwise}
|
|
172
|
+
end{cases}
|
|
173
173
|
|
|
174
174
|
Parameters
|
|
175
175
|
----------
|
|
@@ -240,8 +240,7 @@ class ConfidenceEllipseCLR(ConfidenceEllipseSimplex):
|
|
|
240
240
|
|
|
241
241
|
.. math::
|
|
242
242
|
|
|
243
|
-
T(\pi) = [\log(\pi_1/g(\pi)), ..., \log(\pi_n/g(\pi))],
|
|
244
|
-
g(\pi) = (\prod_i \pi_i)^{1/n}
|
|
243
|
+
T(\pi) = [\log(\pi_1/g(\pi)), ..., \log(\pi_n/g(\pi))], g(\pi) = (\prod_i \pi_i)^{1/n}
|
|
245
244
|
|
|
246
245
|
A confidence ellipse is then built in the transformed space:
|
|
247
246
|
|
|
@@ -379,12 +379,6 @@ def validate_prevalences(quantifier, prevalences: np.ndarray | list | dict, clas
|
|
|
379
379
|
f"prevalences must be a numpy array, list, or dict, got {type(prevalences).__name__}."
|
|
380
380
|
)
|
|
381
381
|
|
|
382
|
-
# Validate all classes are present
|
|
383
|
-
if set(prev_dict.keys()) != set(classes):
|
|
384
|
-
raise InputValidationError(
|
|
385
|
-
f"prevalences keys must match classes. Got keys {set(prev_dict.keys())}, expected {set(classes)}."
|
|
386
|
-
)
|
|
387
|
-
|
|
388
382
|
# Normalize if requested
|
|
389
383
|
if normalize:
|
|
390
384
|
total = sum(prev_dict.values())
|
mlquantify-0.1.24/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.24
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|