mlquantify 0.1.4__py3-none-any.whl → 0.1.5__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.
@@ -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
@@ -9,14 +9,14 @@ mlquantify/evaluation/measures.py,sha256=fIKyxxlD8em3oaj4u_BeXmNyUQG_A0vXWY8APPg
9
9
  mlquantify/evaluation/protocol.py,sha256=__tzRyqW4cJz4Fl87TInf7dXxIJ6bSaYaSaw-SdkNmM,10365
10
10
  mlquantify/methods/__init__.py,sha256=ya3Mn7bcz2r3oaIT7yVR4iJkAfgEAwF4xDK54C0rZ7U,536
11
11
  mlquantify/methods/aggregative.py,sha256=F5Z-tGA9OcZgMBLKOeaos6wIgvvnDeriZ4y0TyMpDrc,39051
12
- mlquantify/methods/meta.py,sha256=sZWQHUGkm6iiqujmIpHDL_8tDdKQ161bzD5mcpXLWEY,19066
12
+ mlquantify/methods/meta.py,sha256=mBunCc_PFLdmrs5sf5MDc8TbO3VFpLAmxV2y2VDNjY8,19052
13
13
  mlquantify/methods/mixture_models.py,sha256=si2Pzaka5Kbva4QKBzLolvb_8V0ZEjp68UBAiOwl49s,35166
14
14
  mlquantify/methods/non_aggregative.py,sha256=xaBu21TUtiYkOEUKO16NaNMwdNa6-SNjfBsc5PpIMyI,4815
15
15
  mlquantify/methods/threshold_optimization.py,sha256=NYGKbYvtfmiBeU8wpTiFCdURkijcPRZtybPOt6vtXbY,30489
16
16
  mlquantify/utils/__init__.py,sha256=logWrL6B6mukP8tvYm_UPEdO9eNA-J-ySILr7-syDoc,44
17
17
  mlquantify/utils/general.py,sha256=wKJSmwF1KfSlSrDm0KTf92FMvB62BBOxf2Se9HyeWYE,8668
18
18
  mlquantify/utils/method.py,sha256=RL4vBJGl5_6DZ59Bs62hdNXI_hnoDIWilMMyMPiOjBg,12631
19
- mlquantify-0.1.4.dist-info/METADATA,sha256=UtNxYnZnSt6HS0B8JsW5A5tvxlxFUH_GODjF1AXXsSY,5166
20
- mlquantify-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- mlquantify-0.1.4.dist-info/top_level.txt,sha256=tGEkYkbbFElwULvqENjam3u1uXtyC1J9dRmibsq8_n0,11
22
- mlquantify-0.1.4.dist-info/RECORD,,
19
+ mlquantify-0.1.5.dist-info/METADATA,sha256=bBEPfQhD4FYz9K4XsFCikSefsqo6JsNjqEPxTOW-Fv0,5166
20
+ mlquantify-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ mlquantify-0.1.5.dist-info/top_level.txt,sha256=tGEkYkbbFElwULvqENjam3u1uXtyC1J9dRmibsq8_n0,11
22
+ mlquantify-0.1.5.dist-info/RECORD,,