get_feature_ids#
- FeatureSystem.get_feature_ids(features: ndarray) tuple[ndarray, ndarray] #
If the features or their inverses are already contained inside of the feature system then return the id and specification of the feature. Otherwise -1 is returned.
Parameters#
- featuresnp.ndarray
A matrix of shape (number of datapoints, number of features) encoding the features.
Returns#
- tuple (np.ndarray, np.ndarray)
The feature ids and specifications.