braintools.cogtask.comparison_label# braintools.cogtask.comparison_label(comparison_key, greater_label=1, less_label=2)[source]# Create a label for comparison tasks. Parameters: comparison_key (str) – Context key containing boolean comparison result (True if greater). greater_label (int) – Label when comparison is True/greater (default 1). less_label (int) – Label when comparison is False/less (default 2). Returns: Label function (ctx, feature) -> int Return type: Callable[[Context, Feature | None], int] Examples >>> outputs={'label': comparison_label('test_greater_than_sample')}