Loads reference binary classifier output.
(path)
| 21 | |
| 22 | |
| 23 | def load_binary_list(path): |
| 24 | """Loads reference binary classifier output. """ |
| 25 | bits = [] |
| 26 | with open(path, 'r') as fd: |
| 27 | for line in fd: |
| 28 | if (not line.strip()) or line.startswith('#'): |
| 29 | continue |
| 30 | bits.append(1 if line.startswith('y') else 0) |
| 31 | return bits |
| 32 | |
| 33 | |
| 34 | def load_score_list(path): |