random_features#
- tangles.separations.finding.random_features(num_features: int, num_elements: int, probability: float = 0.5) ndarray #
Generates an array of features randomly. For each feature, each element of the groundset is independently chosen to be contained within the feature with the given probability.
Parameters#
- num_featuresint
The number of features that will be generate.
- num_elementsint
The size of the ground set from which elements are chosen for each feature.
- probabilityfloat
The probability of a single element to be contained within a feature.
Returns#
- np.ndarray
An array of features.