add_features#

AdvancedFeatureSystem.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.

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.