Skip to content
Browse files

CLN: Use keyword argument for BsEPSM predict

  • Loading branch information...
achabotl committed Nov 30, 2016
1 parent e132e71 commit f75fa36b51bf80282f766deeca4e0a1da36a352d
Showing with 2 additions and 2 deletions.
  1. +2 −2 pambox/speech/
@@ -241,7 +241,7 @@ def _apply_ba_process(self, be, bu, be_indices, bu_indices):
ba = self._better_ear(be, bu, be_indices, bu_indices)
return ba

def predict(self, clean, mixture, noise):
def predict(self, clean=None, mixture=None, noise=None):
"""Predict intelligibility.
@@ -257,7 +257,7 @@ def predict(self, clean, mixture, noise):
# Calculate the mr-sEPSM prediction for each ear in one call..
binaural_res = [super(BsEPSM, self).predict(c, m, n)
binaural_res = [super(BsEPSM, self).predict(clean=c, mix=m, noise=n)
for c, m, n in zip(clean, mixture, noise)]
# ... and save them independently...
ears_res = Ears(*binaural_res)

0 comments on commit f75fa36

Please sign in to comment.
You can’t perform that action at this time.