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#

surveySurvey

The factory will be able to create features (or separations) for variables of this survey.

defaultSurveyFeatureFactory

A survey feature factory used as default. This factory creates features for all variables that are not treated individually.

Methods

create_features()

Create features for a set of variables corresponding to the columns specified by column_selection

create_features_for_single_col()

Create a set of binary features given a variable and a column of the data containing all answers to the

set_factoryfunc()

Assign a feature factory function with a variable