Skip to content

Commit

Permalink
feat(testing-tools): cleanup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dlepaux committed Jan 30, 2024
1 parent 1899296 commit 6ff5615
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions testing/tools/bpm-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ function calculateMae(audioFiles: AudioFile[]): number {

for (const file of audioFiles) {
const errors = file.tempos.map(candidate => Math.abs(file.bpm - candidate.tempo));
console.log('errors', errors);
totalError += Math.min(...errors); // Consider the minimum error among candidates
}

console.log('totalError', totalError);
console.log('audioFiles.length', audioFiles.length);
return totalError / audioFiles.length;
}

Expand Down

0 comments on commit 6ff5615

Please sign in to comment.