SimpleSurveyFeatureFactory#
- class tangles.convenience.SimpleSurveyFeatureFactory(survey: Survey)#
A simple survey factory, used as default factory.
Attributes#
- numvar_funccreate_feature_func
A feature factory function to create features for numeric variables. The default function splits the range regularly (see
numericvar_features_split_regular_ge()
).- ordvar_funccreate_feature_func
A feature factory function to create features for ordinal variables. The default function splits the range regularly (see
ordinalvar_features_ge_all_splits()
).- nomvar_funccreate_feature_func
A feature factory function to create features for nominal variables. The default function creates a feature for every possible value the variable can take (see
nominalvar_features_all_cats()
).
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