nkululeko 0.88.2__py3-none-any.whl → 0.88.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.
nkululeko/constants.py CHANGED
@@ -1,2 +1,2 @@
1
- VERSION="0.88.2"
1
+ VERSION="0.88.3"
2
2
  SAMPLING_RATE = 16000
@@ -72,9 +72,11 @@ class Demo_predictor:
72
72
  else:
73
73
  self.util.debug(df_res)
74
74
  else:
75
- while True:
75
+ answer = input("want to record y/n?")
76
+ while answer == "y":
76
77
  signal = self.record_audio(3)
77
78
  self.predict_signal(signal, self.sr)
79
+ answer = input("want to record y/n?")
78
80
 
79
81
  # self.play_audio(signal)
80
82
 
@@ -109,7 +111,7 @@ class Demo_predictor:
109
111
  def record_audio(self, seconds):
110
112
  import sounddevice as sd
111
113
 
112
- print("recording ...")
114
+ print("recording ...", flush=True)
113
115
  y = sd.rec(int(seconds * self.sr), samplerate=self.sr, channels=1)
114
116
  sd.wait()
115
117
  y = y.T
@@ -144,10 +144,10 @@ class Reporter:
144
144
  and "uncertainty" not in self.probas
145
145
  ):
146
146
  probas = self.probas
147
- probas["predicted"] = self.preds
148
- probas["truth"] = self.truths
149
147
  # softmax the probabilities or logits
150
148
  uncertainty = probas.apply(softmax, axis=1)
149
+ probas["predicted"] = self.preds
150
+ probas["truth"] = self.truths
151
151
  try:
152
152
  le = glob_conf.label_encoder
153
153
  mapping = dict(zip(le.classes_, range(len(le.classes_))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nkululeko
3
- Version: 0.88.2
3
+ Version: 0.88.3
4
4
  Summary: Machine learning audio prediction experiments based on templates
5
5
  Home-page: https://github.com/felixbur/nkululeko
6
6
  Author: Felix Burkhardt
@@ -356,6 +356,11 @@ F. Burkhardt, Johannes Wagner, Hagen Wierstorf, Florian Eyben and Björn Schulle
356
356
  Changelog
357
357
  =========
358
358
 
359
+ Version 0.88.3
360
+ --------------
361
+ * fixed bug in false uncertainty estimation
362
+ * changed demo live recording
363
+
359
364
  Version 0.88.2
360
365
  --------------
361
366
  * changed combine speaker results to show speakers not samples
@@ -2,10 +2,10 @@ nkululeko/__init__.py,sha256=62f8HiEzJ8rG2QlTFJXUCMpvuH3fKI33DoJSj33mscc,63
2
2
  nkululeko/aug_train.py,sha256=YhuZnS_WVWnun9G-M6g5n6rbRxoVREz6Zh7k6qprFNQ,3194
3
3
  nkululeko/augment.py,sha256=4MG0apTAG5RgkuJrYEjGgDdbodZWi_HweSPNI1JJ5QA,3051
4
4
  nkululeko/cacheddataset.py,sha256=lIJ6hUo5LoxSrzXtWV8mzwO7wRtUETWnOQ4ws2XfL1E,969
5
- nkululeko/constants.py,sha256=92td3PSYccIF_YkZhW6EMRo70neUjL_2Wj7JXyHzoq4,39
5
+ nkululeko/constants.py,sha256=nYBLnpl1NpTeGp7KjRHJkxz_Vju3pYEkcrj3CwBX0zI,39
6
6
  nkululeko/demo.py,sha256=bLuHkeEl5rOfm7ecGHCcWATiPK7-njNbtrGljxzNzFs,5088
7
7
  nkululeko/demo_feats.py,sha256=sAeGFojhEj9WEDFtG3SzPBmyYJWLF2rkbpp65m8Ujo4,2025
8
- nkululeko/demo_predictor.py,sha256=es56xbT8ifkS_vnrlb5NTZT54gNmeUtNlA4zVA_gnN8,4757
8
+ nkululeko/demo_predictor.py,sha256=zs1bjhpnKuNCPLJeiyDm19ME1NEDOQT3QNeyVKJq9Yc,4882
9
9
  nkululeko/ensemble.py,sha256=huRbXUuabm6QYxGBHjkwEU95e-0qxtO0Z6UdXFgtaMY,4947
10
10
  nkululeko/experiment.py,sha256=wXZnb_cfOqF8b0Zqzu2bbrEgCCpG_zPkDbD-Usw5sRs,31283
11
11
  nkululeko/explore.py,sha256=lDzRoW_Taa5u4BBABZLD89BcQWnYlrftJR4jgt1yyj0,2609
@@ -98,7 +98,7 @@ nkululeko/reporting/defines.py,sha256=IsY1YgKRMaABpylVKjBJgJ5bNCEbGCVA_E6pivraqS
98
98
  nkululeko/reporting/latex_writer.py,sha256=qiCRSmB4KOD_za4oHu5x-PhwjZohzfo8wecMOwlXZwc,1886
99
99
  nkululeko/reporting/report.py,sha256=W0rcigDdjBvxZQ3pZja_gvToILYvaZ1BFtnN2qFRfYI,1060
100
100
  nkululeko/reporting/report_item.py,sha256=siWeGNgo4bAE46YBMNcsdf3jTMTy76BO9Fi6DTvDig4,533
101
- nkululeko/reporting/reporter.py,sha256=77u9t3v_ilqOEToISPPcRffCQuawhgGO3xKnVFGs_pg,19237
101
+ nkululeko/reporting/reporter.py,sha256=WPevPmtpnzSwiF6lxtczmxpFjmzhNABJspAsNNJgmq4,19237
102
102
  nkululeko/reporting/result.py,sha256=G63a2tHCwHhM6NBJgYzsWKWJm4Yu3r4hsCHA2Km7eHU,1073
103
103
  nkululeko/segmenting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
104
  nkululeko/segmenting/seg_inaspeechsegmenter.py,sha256=pmLHuXsaqvcdYxB4PSW9l1mbQWZZBJFhi_CGabqydas,1947
@@ -107,8 +107,8 @@ nkululeko/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  nkululeko/utils/files.py,sha256=UiGAtZRWYjHSvlmPaTMtzyNNGE6qaLaxQkybctS7iRM,4021
108
108
  nkululeko/utils/stats.py,sha256=eC9dMO-by6CDnGLHDBQu-2B4-BudZNJ0nnWGhKYdUMA,2968
109
109
  nkululeko/utils/util.py,sha256=BNd9JpoVakPbyysKBsJSCnqlbPlUKHUrcWYcwEnOdVA,15128
110
- nkululeko-0.88.2.dist-info/LICENSE,sha256=0zGP5B_W35yAcGfHPS18Q2B8UhvLRY3dQq1MhpsJU_U,1076
111
- nkululeko-0.88.2.dist-info/METADATA,sha256=VL3DswyjLpnRvaQkV8jDGw7OszOv-pfQC_i9j57lyLs,39119
112
- nkululeko-0.88.2.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
113
- nkululeko-0.88.2.dist-info/top_level.txt,sha256=DPFNNSHPjUeVKj44dVANAjuVGRCC3MusJ08lc2a8xFA,10
114
- nkululeko-0.88.2.dist-info/RECORD,,
110
+ nkululeko-0.88.3.dist-info/LICENSE,sha256=0zGP5B_W35yAcGfHPS18Q2B8UhvLRY3dQq1MhpsJU_U,1076
111
+ nkululeko-0.88.3.dist-info/METADATA,sha256=8sPk6npYa7my3UA88uk2373yzdfiRFfb70Zix097KR4,39224
112
+ nkululeko-0.88.3.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
113
+ nkululeko-0.88.3.dist-info/top_level.txt,sha256=DPFNNSHPjUeVKj44dVANAjuVGRCC3MusJ08lc2a8xFA,10
114
+ nkululeko-0.88.3.dist-info/RECORD,,