metadpy.sdt.scores#

metadpy.sdt.scores(data: None, stimuli: Union[List[int], ndarray], responses: Union[List[int], ndarray]) Tuple[int, int, int, int][source]#
metadpy.sdt.scores(data: DataFrame, stimuli: str, responses: str) Tuple[int, int, int, int]

Hits, misses, false alarms and correct rejection from stimuli and responses.

Parameters
data

Dataframe containing one stimuli and one response column.

stimuli

If a string is provided, should be the name of the column used as stimuli. If a list or an array is provided, should contain the boolean vectors for stimuli.

responses

If a string is provided, should be the name of the column used as responses. If a list or an array is provided, should contain the boolean vector for responses.

Returns
hits, misses, fas, crs

The number of hits, misees, false alarms and correct rejections.

Raises
ValueError:

If no valid data is provided.

Notes

If a pandas.DataFrame is provided, the function will search for a stimuli`and a `responses column by default if no other column names are provided.