FeatureSystem#
- class tangles.separations.FeatureSystem(data_size: int)#
Methods
Get the feature or features as a matrix of indicator columnvectors
Calculate the infimum of two features from the feature system and add this infimum as a
Add features to the feature system
Add separations to the separation system
Returns
Returns
If the user has entered custom meta info for a feature, then that is prioritised before everything else
Compute the infimum (intersection) of the given list of features
Count the number of data points on the big (positive) side of the given separation
Generator to get all crossing separations from the list of separations
Returns
Return a list of all metadata of the feature feature_id
Returns
Calculate the four corners of two features in the feature system
If the features or their inverses are already contained inside of the feature system then return the
If the separations are already contained inside of the separation system then return the
Check if feature \(a\) specified by feat_id_a is less than or equal to feature \(b\) specified by feat_id_b,
Check whether two features are nested
Check if the feature feat_id_a is a subset of the feature feat_id_b
Explain the meaning of a feature, generated by repeatedly taking corners of features,
Returns the metadata of the separation sep_id
Count the number of data points on each side of the separation
Create a new SetSeparationSystem from a separation matrix
Create a new SetSeparationSystem from a sparse separation matrix