Skip to content

Instantly share code, notes, and snippets.

View JamesOwers's full-sized avatar

James Owers JamesOwers

View GitHub Profile
@JamesOwers
JamesOwers / data_exploration.ipynb
Last active September 28, 2020 11:10
AI Music Competition 2020 Notebooks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, this is too big to display.
@JamesOwers
JamesOwers / p4p_scores.py
Last active March 12, 2019 11:20
p4p_scores.py
import pandas as pd
import numpy as np
from tqdm import tqdm
import seaborn as sns
import matplotlib.pyplot as plt
from glob import glob
def get_scores(true_df, gen_df, start_onset, increment=1.0, max_t=None):
"""
Calculates the inter-ontime interval scores. Returns a list of ioi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.