Psychometric curve: cloud of tones#

Left choices against the evidence of the cloud of tones (6 bins), with a lapse logistic fit.

from matplotlib import pyplot as plt

from lecilab_behavior_analysis.metrics.choices import get_performance_by_difficulty_ratio
from lecilab_behavior_analysis.plots import psychometric_plot

cot = day[day["stimulus_modality"] == "auditory-cot"]  # cloud of tones, easy to hard
df = get_performance_by_difficulty_ratio(cot)
fig, ax = plt.subplots(figsize=(4, 3.5))
psychometric_plot(df, x="total_evidence_strength", y="first_choice_numeric", ax=ax, valueType="continue")

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