mlquantify 0.1.21__py3-none-any.whl → 0.1.22__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.
@@ -4,12 +4,14 @@ from typing import Dict, Any, Sequence
4
4
 
5
5
  import numpy as np
6
6
  from sklearn.model_selection import train_test_split
7
- import torch
8
- import torch.nn as nn
9
- from torch.nn import MSELoss
10
- from torch.nn.functional import relu
11
-
12
- from tqdm import tqdm
7
+ try:
8
+ import torch
9
+ import torch.nn as nn
10
+ from torch.nn import MSELoss
11
+ from torch.nn.functional import relu
12
+ except ImportError:
13
+ import warnings
14
+ warnings.warn("torch is not installed. Neural network quantifiers will not work.")
13
15
 
14
16
  from mlquantify.base import BaseQuantifier
15
17
  from mlquantify.base_aggregative import (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlquantify
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: Quantification Library
5
5
  Home-page: https://github.com/luizfernandolj/QuantifyML/tree/master
6
6
  Maintainer: Luiz Fernando Luth Junior
@@ -33,7 +33,7 @@ mlquantify/neighbors/_kde.py,sha256=x6DkONFhCec44HPFY5H2DTXjMVKPQkz2kEUmfxx5DrM,
33
33
  mlquantify/neighbors/_utils.py,sha256=CozcKtmd6ZDluMT4bvOj4QI7xwORF_vCIJRucPEzJJo,4123
34
34
  mlquantify/neural/__init__.py,sha256=UFHkMnUCyqi6zmH6YZr6aTq8v0ndbzTWS9se14rSEx8,28
35
35
  mlquantify/neural/_base.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- mlquantify/neural/_classes.py,sha256=AL1fda4XtvvVzHAtm8tDGYBTi0pn9UG8hL6fcaOAi28,23248
36
+ mlquantify/neural/_classes.py,sha256=PCX4-LH3QhgEav44u12bhP_T1BHGNoNcB2aVJ4VWIXk,23373
37
37
  mlquantify/neural/_perm_invariant.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  mlquantify/neural/_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  mlquantify/utils/__init__.py,sha256=4_Mnerh2GV6mOiKYW9SX_mjMTxqKeai0umBCnVj4vow,1370
@@ -50,8 +50,8 @@ mlquantify/utils/_sampling.py,sha256=3W0vUuvLvoYrt-BZpSM0HM1XJEZr0XYIdkOcUP5hp-8
50
50
  mlquantify/utils/_tags.py,sha256=Rz78TLpxgVxBKS0mKTlC9Qo_kn6HaEwVKNXh8pxFT7M,1095
51
51
  mlquantify/utils/_validation.py,sha256=V3y-wbH69yFdogcEtQ15ShvtIrlIZ4ObzduaqLYvXp0,18319
52
52
  mlquantify/utils/prevalence.py,sha256=LG-KXJ5Eb4w26WMpu4PoBpxMSHaqrmTQqdRlyqNRJ1o,2020
53
- mlquantify-0.1.21.dist-info/licenses/LICENSE,sha256=DyKiou3Tffi-9NKcNBomiuHedeiF9sDC2Y9tZK_3Sko,1539
54
- mlquantify-0.1.21.dist-info/METADATA,sha256=yVgQ0MtXG4wqnv4bD2ryZDP3OkLOqScxoSO1myiMuE0,4791
55
- mlquantify-0.1.21.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
56
- mlquantify-0.1.21.dist-info/top_level.txt,sha256=tGEkYkbbFElwULvqENjam3u1uXtyC1J9dRmibsq8_n0,11
57
- mlquantify-0.1.21.dist-info/RECORD,,
53
+ mlquantify-0.1.22.dist-info/licenses/LICENSE,sha256=DyKiou3Tffi-9NKcNBomiuHedeiF9sDC2Y9tZK_3Sko,1539
54
+ mlquantify-0.1.22.dist-info/METADATA,sha256=Smq1DW-R4IAu7X1ZXxxYy68_oMeoguVhFvDTcyaYdjk,4791
55
+ mlquantify-0.1.22.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
56
+ mlquantify-0.1.22.dist-info/top_level.txt,sha256=tGEkYkbbFElwULvqENjam3u1uXtyC1J9dRmibsq8_n0,11
57
+ mlquantify-0.1.22.dist-info/RECORD,,