SurveyFeatureFactory#

class tangles.convenience.SurveyFeatureFactory(survey: Survey)#

Abstract base class for feature factories.

A feature factory can be used to create binary features from (possibly non-binary) survey variables.

Parameters#

surveySurvey

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

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