SurveyFeatureFactoryDecorator#

class tangles.convenience.SurveyFeatureFactoryDecorator(survey: Survey, embedded_feature_factory: SurveyFeatureFactory | None = None)#

A small decorator class that can extend the behaviour of another survey feature factory.

Attributes#

embedded_feature_factorySurveyFeatureFactory

Another feature factory. The default is a SimpleSurveyFeatureFactory.

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