add_features#
- FeatureSystem.add_features(new_features: ndarray, metadata=None) tuple[ndarray, ndarray] #
Add features to the feature system.
Parameters#
- new_featuresnp.ndarray
A matrix of shape (number of points, number of features) representing the features. A value of 1 represents the point being contained withing the feature and a value of -1 represents the point not being contained within the feature.
- metadataarraylike, optional
An optional piece of metadata. Should be an arraylike of length (number of features).
Returns#
- tuple (np.ndarray, np.ndarray)
The ids of the added features in the feature system in its first entry and an np.ndarray in the second entry that is 1 if the new feature is contained in the feature system, or -1 if its inverse is contained in the feature system.