Features.getIndices

Features.getIndices(names)

The indices of a list of feature names.

Return a list of the the index locations of the provided feature names.

Parameters:

names (list) – The names of features.

Returns:

list

See also

getIndex

Examples

>>> X = nimble.identity(4, featureNames=['a', 'b', 'c', 'd'])
>>> X.features.getIndices(['c', 'a', 'd'])
[2, 0, 3]

Keywords: positions, spots, locations, identifiers