Skip to content

Commit

Permalink
0.77.10
Browse files Browse the repository at this point in the history
  • Loading branch information
FBurkhardt committed Jan 3, 2024
1 parent 97c1792 commit fd90b8f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

Version 0.77.10
--------------
* show the best and not the last result for multidb

Version 0.77.9
--------------
* added results text for multidb
Expand Down
2 changes: 1 addition & 1 deletion nkululeko/aug_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def doit(config_file):

# run the experiment
reports = expr.run()
result = reports[-1].result.test
result = expr.get_best_report(reports).result.test
expr.store_report()
print("DONE")
return result
Expand Down
2 changes: 1 addition & 1 deletion nkululeko/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION="0.77.9"
VERSION="0.77.10"
SAMPLING_RATE = 16000
6 changes: 3 additions & 3 deletions nkululeko/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def plot_confmat_per_speaker(self, function):
"plot combined speaker predictions not possible for cross" " validation"
)
return
best = self._get_best_report(self.reports)
best = self.get_best_report(self.reports)
# if not best.is_classification:
# best.continuous_to_categorical()
truths = best.truths
Expand All @@ -643,8 +643,8 @@ def plot_confmat_per_speaker(self, function):
)
best.plot_per_speaker(df, plot_name, function)

def _get_best_report(self, best_reports):
return self.runmgr.get_best_result(best_reports)
def get_best_report(self, reports):
return self.runmgr.get_best_result(reports)

def print_best_model(self):
self.runmgr.print_best_result_runs()
Expand Down
2 changes: 1 addition & 1 deletion nkululeko/nkululeko.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def doit(config_file):

# run the experiment
reports = expr.run()
result = reports[-1].result.test
result = expr.get_best_report(reports).result.test
expr.store_report()
print("DONE")
return result
Expand Down

0 comments on commit fd90b8f

Please sign in to comment.