Extractor
- class eyefeatures.features.extractor.Extractor(features=None, x=None, y=None, t=None, duration=None, dispersion=None, aoi=None, path_pk=None, pk=None, expected_paths_method='mean', extra=None, aggr_extra=None, warn=True, leave_pk=False, return_df=True)[source]
Bases:
BaseEstimator,TransformerMixinMeta Transformer that encapsulates the logic of feature extraction, providing
fit/transformAPI.- Parameters:
features (list[BaseTransformer]) – List of feature transformers to use.
x (str) – X coordinate column name.
y (str) – Y coordinate column name.
t (str) – timeseries coordinate column name.
duration (str) – fixation duration column name.
dispersion (str) – fixation dispersion column name.
aoi (str) – AOI column name.
path_pk (list[str]) – list of columns by which to calculate expected path.
expected_paths_method (str) – the method to calculate expected path.
extra (list[str]) – used in combination with
aggr_extra. List of columns of input dataframe (ontransform) to aggregate alongside with other feature transformers, using aggregation functionaggr_extra.aggr_extra (Callable | str) – aggregation function (pandas str or custom callable) to apply with
extraargument.warn (bool) – whether to enable warnings.
leave_pk (bool) – if True, then input
pkcolumns are present in output dataframe (aftertransform).return_df (bool) – if True, then pandas DataFrame is returned, else np.ndarray.