Skip to content

Commit

Permalink
Uncommented old normalize code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Jun 28, 2022
1 parent 62f2729 commit b3846ff
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 8 deletions.
8 changes: 4 additions & 4 deletions PyHa/IsoAutio.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def isolate(
"""

# normalize the local scores so that the max value is 1.
if normalize_local_scores:
local_scores_max = max(local_scores)
for ndx in range(len(local_scores)):
local_scores[ndx] = local_scores[ndx] / local_scores_max
#if normalize_local_scores:
# local_scores_max = max(local_scores)
# for ndx in range(len(local_scores)):
# local_scores[ndx] = local_scores[ndx] / local_scores_max
# initializing the output dataframe that will contain labels across a
# single clip
isolation_df = pd.DataFrame()
Expand Down
223 changes: 219 additions & 4 deletions PyHa_Testing-Copy1.ipynb

Large diffs are not rendered by default.

0 comments on commit b3846ff

Please sign in to comment.