SurveyFeatureFactoryCherryPicker#
- class tangles.convenience.SurveyFeatureFactoryCherryPicker(survey: Survey, default: SurveyFeatureFactory | None = None)#
A survey feature factory extending a default factory that allows to change the factory functions for individual variables.
Parameters#
- survey
Survey
The factory will be able to create features (or separations) for variables of this survey.
- default
SurveyFeatureFactory
A survey feature factory used as default. This factory creates features for all variables that are not treated individually.
Methods
Create features for a set of variables corresponding to the columns specified by column_selection
Create a set of binary features given a variable and a column of the data containing all answers to the
Assign a feature factory function with a variable
- survey