tangles.convenience#

Modules

tangles.convenience.convenience_features

Classes

NominalVariableValues

A nominal SurveyVariableValues class

NumericalVariableValues

A numeric SurveyVariableValues class

OrderFunctionO1

Order function “O1” from the book

OrderFunctionO1biased

Biased version of order function “O1” from the book

OrderFunctionO2

Order function “O2” from the book

OrderFunctionO3

Order function “O3” from the book

OrderFunctionO4

Order function “O4” from the book

OrdinalVariableValues

An ordinal SurveyVariableValues class

SimpleSurveyFeatureFactory

A simple survey factory, used as default factory

SimpleSurveyFeatureFactoryMissingValuesBothSides

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

SimpleSurveyFeatureFactoryMissingValuesImplicit

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

SimpleSurveyFeatureFactoryMissingValuesOwnFeatures

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

Survey

Objects of this class represent survey data and provide functions to prepare, clean and subset survey data

SurveyFeatureFactory

Abstract base class for feature factories

SurveyFeatureFactoryCherryPicker

A survey feature factory extending a default factory that allows to change the factory functions for individual

SurveyFeatureFactoryDecorator

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

SurveyTangles

Manages a tangle search on survey data

SurveyVariable

A variable (column) of a Survey

SurveyVariableValues

This class manages the interaction of variables (and their lists of values) and features (or separations)

TangleSweepFeatureSys

A convenience object bundling a tangle sweep object and a feature system (or separation system)

UnionOfIntervals

Functions

binary_unique_value_features()

A feature factory function for binary variables

create_features_all_unique_values()

A simple feature factory function for variables that take a (small) number of unique values

create_features_split_regular_bins()

A feature factory function creating features splitting the variable’s range into equally sized bins

create_features_split_regular_ge()

A feature factory function creating bipartitions splitting the dataset at equidistant thresholds between minimum and maximum the variable’s range

create_order_function()

Create a standard order function given by name

feats2seps_invalids_to_both_sides()

A decorator turning a feature into a set separation by assigning invalid and missing answers to both sides of

feature_factory_all_splits_ge()

A feature factory function splitting the range of a variable into two subsets using threholds at each unique value of the variable’s range

nominalvar_features_all_cats()

A feature factory function for nominal variables

order_works_on_features()

Helper function to find out if a named order function works on features

search_tangles()

Search tangles and return a TangleSweepFeatureSys (a container for the result)

search_tangles_uncrossed()

Search tangles, uncross crossing distinguishers and return an object containing the result