Performance through training#

Performance (rolling window) through all trials.

from matplotlib import pyplot as plt

from lecilab_behavior_analysis.metrics.performance import get_performance_through_trials
from lecilab_behavior_analysis.plots import performance_vs_trials_plot

df = get_performance_through_trials(trials, window=100)
fig, ax = plt.subplots(figsize=(8, 3))
performance_vs_trials_plot(df, ax=ax, legend=True)

trials, day, summary, events and cohort are the inputs of the examples. Back to the gallery