mlquantify 0.1.4__tar.gz → 0.1.5__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.
Files changed (30) hide show
  1. {mlquantify-0.1.4/mlquantify.egg-info → mlquantify-0.1.5}/PKG-INFO +1 -1
  2. mlquantify-0.1.5/VERSION.txt +1 -0
  3. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/methods/meta.py +2 -2
  4. {mlquantify-0.1.4 → mlquantify-0.1.5/mlquantify.egg-info}/PKG-INFO +1 -1
  5. mlquantify-0.1.4/VERSION.txt +0 -1
  6. {mlquantify-0.1.4 → mlquantify-0.1.5}/MANIFEST.in +0 -0
  7. {mlquantify-0.1.4 → mlquantify-0.1.5}/README.md +0 -0
  8. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/__init__.py +0 -0
  9. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/base.py +0 -0
  10. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/classification/__init__.py +0 -0
  11. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/classification/methods.py +0 -0
  12. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/evaluation/__init__.py +0 -0
  13. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/evaluation/measures.py +0 -0
  14. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/evaluation/protocol.py +0 -0
  15. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/methods/__init__.py +0 -0
  16. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/methods/aggregative.py +0 -0
  17. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/methods/mixture_models.py +0 -0
  18. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/methods/non_aggregative.py +0 -0
  19. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/methods/threshold_optimization.py +0 -0
  20. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/model_selection.py +0 -0
  21. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/plots.py +0 -0
  22. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/utils/__init__.py +0 -0
  23. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/utils/general.py +0 -0
  24. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify/utils/method.py +0 -0
  25. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify.egg-info/SOURCES.txt +0 -0
  26. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify.egg-info/dependency_links.txt +0 -0
  27. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify.egg-info/requires.txt +0 -0
  28. {mlquantify-0.1.4 → mlquantify-0.1.5}/mlquantify.egg-info/top_level.txt +0 -0
  29. {mlquantify-0.1.4 → mlquantify-0.1.5}/setup.cfg +0 -0
  30. {mlquantify-0.1.4 → mlquantify-0.1.5}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlquantify
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Quantification Library
5
5
  Home-page: https://github.com/luizfernandolj/QuantifyML/tree/master
6
6
  Maintainer: Luiz Fernando Luth Junior
@@ -0,0 +1 @@
1
+ 0.1.5
@@ -7,7 +7,7 @@ from sklearn.model_selection import GridSearchCV, cross_val_predict
7
7
  from ..evaluation import measures
8
8
  from ..base import Quantifier
9
9
  from ..utils.method import getHist, hellinger
10
- from ..utils.general import make_prevs, normalize_prevalence, parallel, generate_artificial_indexes
10
+ from ..utils.general import make_prevs, normalize_prevalence, parallel, get_indexes_with_prevalence
11
11
 
12
12
  class Ensemble(Quantifier):
13
13
  """Ensemble of Quantification Models.
@@ -401,7 +401,7 @@ def _delayed_new_sample(args):
401
401
  print(f'\tfit-start for prev {str(np.round(prev, 3))}, sample_size={sample_size}')
402
402
  model = deepcopy(base_quantifier)
403
403
 
404
- sample_index = generate_artificial_indexes(y, prev, sample_size, np.unique(y))
404
+ sample_index = get_indexes_with_prevalence(y, prev, sample_size)
405
405
  X_sample = np.take(X, sample_index, axis=0)
406
406
  y_sample = np.take(y, sample_index, axis=0)
407
407
  #print(X_sample)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlquantify
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Quantification Library
5
5
  Home-page: https://github.com/luizfernandolj/QuantifyML/tree/master
6
6
  Maintainer: Luiz Fernando Luth Junior
@@ -1 +0,0 @@
1
- 0.1.4
File without changes
File without changes
File without changes
File without changes