SimpleSurveyFeatureFactoryMissingValuesImplicit#

class tangles.convenience.SimpleSurveyFeatureFactoryMissingValuesImplicit(survey: Survey, numeric_var_num_bins: int = 5)#

A simple survey factory that takes missing and invalid values into account.

This factory creates features that don’t need to handle invalid and missing answers explicitly. The invalid answers are assigned to each feature’s complement.

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