UnitFilterById#
- class torch_brain.transforms.UnitFilterById(pattern, field, reset_index=True, keep_matches=True)[source]#
Bases:
torch_brain.transforms.unit_filter.UnitFilterKeep/drop units based on the keyword/regex given in the constructor. Filtering is done based on the unit ids. Whether to keep or drop is based on the keep_matches argument.