filter

Features.filter(conditional)[source]

Filters the Features container.

Args:
conditional (callable, optional):

A callable that evaluates to a boolean for a given item.

Return:
getml.pipeline.Features:

A container of filtered Features.

Example:
important_features = my_pipeline.features.filter(lambda feature: feature.importance > 0.1)

correlated_features = my_pipeline.features.filter(lambda feature: feature.correlation > 0.3)