nkululeko 0.96.0__py3-none-any.whl → 0.96.1__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.
- nkululeko/constants.py +1 -1
- nkululeko/reporting/reporter.py +15 -8
- {nkululeko-0.96.0.dist-info → nkululeko-0.96.1.dist-info}/METADATA +1 -1
- {nkululeko-0.96.0.dist-info → nkululeko-0.96.1.dist-info}/RECORD +8 -8
- {nkululeko-0.96.0.dist-info → nkululeko-0.96.1.dist-info}/WHEEL +0 -0
- {nkululeko-0.96.0.dist-info → nkululeko-0.96.1.dist-info}/entry_points.txt +0 -0
- {nkululeko-0.96.0.dist-info → nkululeko-0.96.1.dist-info}/licenses/LICENSE +0 -0
- {nkululeko-0.96.0.dist-info → nkululeko-0.96.1.dist-info}/top_level.txt +0 -0
nkululeko/constants.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
VERSION="0.96.
|
1
|
+
VERSION="0.96.1"
|
2
2
|
SAMPLING_RATE = 16000
|
nkululeko/reporting/reporter.py
CHANGED
@@ -198,7 +198,9 @@ class Reporter:
|
|
198
198
|
)
|
199
199
|
|
200
200
|
def plot_proba_conf(self):
|
201
|
-
uncertainty_threshold = self.util.config_val(
|
201
|
+
uncertainty_threshold = self.util.config_val(
|
202
|
+
"PLOT", "uncertainty_threshold", False
|
203
|
+
)
|
202
204
|
if uncertainty_threshold:
|
203
205
|
uncertainty_threshold = float(uncertainty_threshold)
|
204
206
|
old_size = self.probas.shape[0]
|
@@ -210,9 +212,13 @@ class Reporter:
|
|
210
212
|
)
|
211
213
|
truths = df["truth"].values
|
212
214
|
preds = df["predicted"].values
|
213
|
-
self._plot_confmat(
|
214
|
-
|
215
|
-
|
215
|
+
self._plot_confmat(
|
216
|
+
truths,
|
217
|
+
preds,
|
218
|
+
f"uncertainty_less_than_{uncertainty_threshold}_cnf",
|
219
|
+
epoch=None,
|
220
|
+
test_result=None,
|
221
|
+
)
|
216
222
|
|
217
223
|
def set_id(self, run, epoch):
|
218
224
|
"""Make the report identifiable with run and epoch index."""
|
@@ -434,7 +440,10 @@ class Reporter:
|
|
434
440
|
self.util.debug(f"####->{file_name}<-####")
|
435
441
|
file_name = f"{res_dir}{file_name}{self.filenameadd}.txt"
|
436
442
|
if self.util.exp_is_classification():
|
437
|
-
|
443
|
+
if glob_conf.label_encoder is not None:
|
444
|
+
labels = glob_conf.label_encoder.classes_
|
445
|
+
else:
|
446
|
+
labels = glob_conf.labels
|
438
447
|
try:
|
439
448
|
rpt = classification_report(
|
440
449
|
self.truths,
|
@@ -451,9 +460,7 @@ class Reporter:
|
|
451
460
|
target_names=s_labels,
|
452
461
|
digits=4,
|
453
462
|
)
|
454
|
-
self.util.debug(
|
455
|
-
f"\n {class_report_str}"
|
456
|
-
)
|
463
|
+
self.util.debug(f"\n {class_report_str}")
|
457
464
|
except ValueError as e:
|
458
465
|
self.util.debug(
|
459
466
|
"Reporter: caught a ValueError when trying to get"
|
@@ -4,7 +4,7 @@ nkululeko/aug_train.py,sha256=wpiHCJ7zsW38kumg3ypwXZe2HQrhUblAnv7P2QeJnAc,3525
|
|
4
4
|
nkululeko/augment.py,sha256=3RzaxB3gRxovgJVjHXi0glprW01J7RaHhUkqotW2T3U,2955
|
5
5
|
nkululeko/balance.py,sha256=r7opXbrqAipm2euPPaOmLlA5J10p2bHQgO5kWk2x9ro,8702
|
6
6
|
nkululeko/cacheddataset.py,sha256=XFpWZmbJRg0pvhnIgYf0TkclxllD-Fctu-Ol0PF_00c,969
|
7
|
-
nkululeko/constants.py,sha256=
|
7
|
+
nkululeko/constants.py,sha256=SGFx3gfUvHqg9Qr8X6a1NxL8ovndS4SAEy6Seh65maE,39
|
8
8
|
nkululeko/demo-ft.py,sha256=iD9Pzp9QjyAv31q1cDZ75vPez7Ve8A4Cfukv5yfZdrQ,770
|
9
9
|
nkululeko/demo.py,sha256=tu7Al2l5MCLVegkDC-NE2wcuc_YE7NRbgOlPW3yhGEs,4940
|
10
10
|
nkululeko/demo_feats.py,sha256=BvZjeNFTlERIRlq34OHM4Z96jdDQAhB01BGQAUcX9dM,2026
|
@@ -123,7 +123,7 @@ nkululeko/reporting/defines.py,sha256=0vh-Tlx4fAPpk1o6mP_4x3EkIoqzYMr38IZnj-JM5z
|
|
123
123
|
nkululeko/reporting/latex_writer.py,sha256=NGwSIfd4nfslDkNUOSZSdqY_VDLA8634thyhe-vj1bY,1824
|
124
124
|
nkululeko/reporting/report.py,sha256=B5eoIKMz46VKDBsi7M9u_iegzAD-E3eGCmolzSFjZ3c,1118
|
125
125
|
nkululeko/reporting/report_item.py,sha256=drkknsyFhGviaPJNmPQtCXJmRhTSSfjNcJt0Bls6JAA,533
|
126
|
-
nkululeko/reporting/reporter.py,sha256=
|
126
|
+
nkululeko/reporting/reporter.py,sha256=usmc2GsqGua40p8AbV08oAcZdvoelP72vsG1xS1NzOQ,22051
|
127
127
|
nkululeko/reporting/result.py,sha256=G63a2tHCwHhM6NBJgYzsWKWJm4Yu3r4hsCHA2Km7eHU,1073
|
128
128
|
nkululeko/segmenting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
129
129
|
nkululeko/segmenting/seg_inaspeechsegmenter.py,sha256=b3t0zdpJYofKWMyKRMtMMX91xeR-k8d5pbnNaQHcsOE,1902
|
@@ -137,9 +137,9 @@ nkululeko/utils/files.py,sha256=SrrYaU7AB80MZHiV1jcB0h_zigvYLYgSVNTXV4ao38g,4593
|
|
137
137
|
nkululeko/utils/stats.py,sha256=3Fyx8q8BSKYmiufT6OkRug9RATWmGrr9BaX_y8jziWo,3074
|
138
138
|
nkululeko/utils/unzip.py,sha256=G68f5120TjwACZC3bQcneMniddnwubPbBdMc2L5KBOo,1206
|
139
139
|
nkululeko/utils/util.py,sha256=s7Hd7Ju1r3_WCw8gLD9YK4O6k3S_WhFcN2-XZBSctSM,18705
|
140
|
-
nkululeko-0.96.
|
141
|
-
nkululeko-0.96.
|
142
|
-
nkululeko-0.96.
|
143
|
-
nkululeko-0.96.
|
144
|
-
nkululeko-0.96.
|
145
|
-
nkululeko-0.96.
|
140
|
+
nkululeko-0.96.1.dist-info/licenses/LICENSE,sha256=0zGP5B_W35yAcGfHPS18Q2B8UhvLRY3dQq1MhpsJU_U,1076
|
141
|
+
nkululeko-0.96.1.dist-info/METADATA,sha256=y6Yr1jPBXvOEyS8VZiFa_as56oS8_h0Z-fYAkoBdky8,21998
|
142
|
+
nkululeko-0.96.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
143
|
+
nkululeko-0.96.1.dist-info/entry_points.txt,sha256=lNTkFEdh6Kjo5o95ZAWf_0Lq-4ztGoAoMVSDuPtuyS0,442
|
144
|
+
nkululeko-0.96.1.dist-info/top_level.txt,sha256=bf1k1YKkqcXemNX_cUgoyKqQ3_GVErPqAY-53J36jkM,19
|
145
|
+
nkululeko-0.96.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|