Skip to content

Instantly share code, notes, and snippets.

@janbenetka
Created September 27, 2021 10:33
Show Gist options
  • Save janbenetka/6f43810d2fae74ee2994a158c16ffcc4 to your computer and use it in GitHub Desktop.
Save janbenetka/6f43810d2fae74ee2994a158c16ffcc4 to your computer and use it in GitHub Desktop.
[Function header] #python #bestpractices
def get_accuracy(series, recovered_series):
"""Compare a simulated and recovered series in terms of overall label accuracy.
Input
-----
series : list of lists
recovered_series : list of lists
Output
------
out : dict
Example
-------
>>> performance = get_accuracy(series, recovered_series)
>>> performance
{'acc': 0.9708, 'baseline': 0.8539}
"""
x = [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment