app.explore.summary.session_accuracy_report

session_accuracy_report(all_data, session_id, plot)[source]

Returns response accuracy of a mouse in a single session.

Can optionally plot the confusion matrix.

Parameters
  • all_data (np.ndarray) – A 2-d numpy array that contains data from all sessions.

  • session_id (int) – Integer that denotes a particular session.

  • plot (bool, optional) – Plots a confusion matrix if True.

Returns

Returns response accuracy.

Return type

float

Return type

float