braintools.cogtask.match_label#
- braintools.cogtask.match_label(match_key, match_label=1, nonmatch_label=2)[source]#
Create a label for match/non-match tasks.
- Parameters:
- Returns:
Label function (ctx, feature) -> int
- Return type:
Examples
>>> outputs={'label': match_label('is_match')} >>> outputs={'label': match_label('is_match', match_label=1, nonmatch_label=2)}