CategoricalROISubsetState2D¶
-
class
glue.core.subset.CategoricalROISubsetState2D(categories, att1, att2)[source]¶ Bases:
glue.core.subset.SubsetStateA subset defined as the set of values for two categorical data attributes that fall inside a categorical region of interest (ROI).
- Parameters
- categoriesdict
A dictionary containing for each label of one categorical component an iterable of labels for the other categorical component (using sets will provide the best performance)
- att1
ComponentID The component ID matching the keys of the
categoriesdictionary- att2
ComponentID The component ID matching the values of the
categoriesdictionary
Attributes Summary
The component ID matching the keys of the
categoriesdictionaryThe component ID matching the values of the
categoriesdictionaryThe attributes that the subset state depends on.
A dictionary containing for each label of one categorical component an iterable of labels for the other categorical component.
Methods Summary
copy(self)Return a copy of the subset state.
to_mask(self, data[, view])Compute the mask for this subset state.
Attributes Documentation
-
categories[source]¶ A dictionary containing for each label of one categorical component an iterable of labels for the other categorical component.
Methods Documentation