This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/python3 | |
| # @author cpuhrsch https://github.com/cpuhrsch | |
| # @author Loreto Parisi loreto@musixmatch.com | |
| import argparse | |
| import numpy as np | |
| from sklearn.metrics import confusion_matrix | |
| def parse_labels(path): | |
| with open(path, 'r') as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| init_worker_by_lua_block { | |
| redis = require("resty.redis") | |
| } | |
| server { |