deepluq 0.1.2__py3-none-any.whl → 0.1.3__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.
- deepluq/metrics_dl.py +3 -3
- deepluq/version.py +1 -1
- {deepluq-0.1.2.dist-info → deepluq-0.1.3.dist-info}/METADATA +1 -1
- deepluq-0.1.3.dist-info/RECORD +11 -0
- {deepluq-0.1.2.dist-info → deepluq-0.1.3.dist-info}/WHEEL +1 -1
- deepluq-0.1.2.dist-info/RECORD +0 -11
- {deepluq-0.1.2.dist-info → deepluq-0.1.3.dist-info}/LICENSE +0 -0
- {deepluq-0.1.2.dist-info → deepluq-0.1.3.dist-info}/entry_points.txt +0 -0
- {deepluq-0.1.2.dist-info → deepluq-0.1.3.dist-info}/top_level.txt +0 -0
deepluq/metrics_dl.py
CHANGED
|
@@ -65,7 +65,7 @@ class DLMetrics:
|
|
|
65
65
|
self.shannon_entropy = round(
|
|
66
66
|
-np.sum([p * (np.log(p + eps) / np.log(base)) for p in events]), 5
|
|
67
67
|
)
|
|
68
|
-
return self.shannon_entropy
|
|
68
|
+
return 0 if self.shannon_entropy < 0 else self.shannon_entropy
|
|
69
69
|
|
|
70
70
|
def calcu_mi(self, events, eps=1e-15, base=2):
|
|
71
71
|
"""
|
|
@@ -88,7 +88,7 @@ class DLMetrics:
|
|
|
88
88
|
|
|
89
89
|
avg_probs = np.mean(np.transpose(events), axis=1)
|
|
90
90
|
self.mutual_information = self.calcu_entropy(avg_probs) + entropy_component(events)
|
|
91
|
-
return self.mutual_information
|
|
91
|
+
return 0 if self.mutual_information < 0 else self.mutual_information
|
|
92
92
|
|
|
93
93
|
# -------------------------------
|
|
94
94
|
# Total variance metrics
|
|
@@ -157,7 +157,7 @@ class DLMetrics:
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
self.mutual_information = mutual_info
|
|
160
|
-
return self.mutual_information
|
|
160
|
+
return 0 if self.mutual_information < 0 else self.mutual_information
|
|
161
161
|
|
|
162
162
|
# -------------------------------
|
|
163
163
|
# Geometric uncertainty metrics
|
deepluq/version.py
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
deepluq/__init__.py,sha256=3MichVAe7q9lTDQCAFOlpCwuFm81hCo-_BmqmHvgk0g,132
|
|
2
|
+
deepluq/metrics_dl.py,sha256=IfEpYL_meOS7Dr6loq2xpN9tkVZkRgcxUZyiJeJC3ZM,6605
|
|
3
|
+
deepluq/metrics_vla.py,sha256=fLy95J2qc_DuP4ehcPV7ox-4SZDno5_sYRdrzvS6AX4,9770
|
|
4
|
+
deepluq/utils.py,sha256=HI9rcHpU9eDggID-iM1bMdkpgKxInSs_BjbIwxfOZ44,6436
|
|
5
|
+
deepluq/version.py,sha256=Nop8Aemkvace2ymdWZjOus-XDPFLojMNyn76tF14iOs,220
|
|
6
|
+
deepluq-0.1.3.dist-info/LICENSE,sha256=6t5q-JxvnwUGlFcFiu3CazfLr7PkMia6lP2176WRGAA,13779
|
|
7
|
+
deepluq-0.1.3.dist-info/METADATA,sha256=7SLTfKl2A3RWYPlqCSbpfKYA4XHFrfKANGypEbxOc6Y,19617
|
|
8
|
+
deepluq-0.1.3.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
|
|
9
|
+
deepluq-0.1.3.dist-info/entry_points.txt,sha256=_af23aZdq1igLe60Wf5YPvO3Dui7j651F_rczbwUT3g,49
|
|
10
|
+
deepluq-0.1.3.dist-info/top_level.txt,sha256=aMIzSmvPh768TasuZwL7dLhtY3YEnveNjVSck1JkK0w,8
|
|
11
|
+
deepluq-0.1.3.dist-info/RECORD,,
|
deepluq-0.1.2.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
deepluq/__init__.py,sha256=3MichVAe7q9lTDQCAFOlpCwuFm81hCo-_BmqmHvgk0g,132
|
|
2
|
-
deepluq/metrics_dl.py,sha256=NdK9xFFlXNWiCcO0oVlFgSpBoUjtNZ3zQ1CitK_ynEQ,6494
|
|
3
|
-
deepluq/metrics_vla.py,sha256=fLy95J2qc_DuP4ehcPV7ox-4SZDno5_sYRdrzvS6AX4,9770
|
|
4
|
-
deepluq/utils.py,sha256=HI9rcHpU9eDggID-iM1bMdkpgKxInSs_BjbIwxfOZ44,6436
|
|
5
|
-
deepluq/version.py,sha256=2STBZ3UCopmQ_m9BSk7-k0BOYpKEmWIWY9Qybl1fK3E,220
|
|
6
|
-
deepluq-0.1.2.dist-info/LICENSE,sha256=6t5q-JxvnwUGlFcFiu3CazfLr7PkMia6lP2176WRGAA,13779
|
|
7
|
-
deepluq-0.1.2.dist-info/METADATA,sha256=clA0Acne-bhKKEmmXw7CoJyhU111ZszUdXgSE6GttYI,19617
|
|
8
|
-
deepluq-0.1.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
9
|
-
deepluq-0.1.2.dist-info/entry_points.txt,sha256=_af23aZdq1igLe60Wf5YPvO3Dui7j651F_rczbwUT3g,49
|
|
10
|
-
deepluq-0.1.2.dist-info/top_level.txt,sha256=aMIzSmvPh768TasuZwL7dLhtY3YEnveNjVSck1JkK0w,8
|
|
11
|
-
deepluq-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|