Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad Call NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad Call NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad NameLoad Index Str decorator_list NameLoad Call NameLoad Dict Str NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad NameLoad Index Str decorator_list NameLoad Call NameLoad Dict Str NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list NameLoad Call NameLoad Dict Str NameLoad Call NameLoad NameLoad Assign NameStore ListLoad Dict Str Str Num Str Dict Str Str Num Str Dict Str Str Str Num Str Str Dict Str Str Num Str Dict Str Str Num Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Num Dict Str Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Assign NameStore Dict Str Str Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr BinOpAdd Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareLt Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad ListLoad Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad NameLoad Slice Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore GeneratorExp NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad FunctionDef arguments args defaults body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A future.builtins str N/A mock N/A types unittest TestCase featureforge.evaluator FeatureEvaluator TolerantFeatureEvaluator featureforge.feature make_feature input_schema output_schema DumbFeatureA N/A N/A data_point N/A N/A N/A a N/A make_feature N/A input_schema dict N/A output_schema str EntireSampleFeature N/A N/A data_point N/A N/A N/A data_point N/A make_feature N/A input_schema dict N/A output_schema object DescriptionFeature N/A N/A data_point N/A N/A N/A N/A data_point N/A description N/A make_feature N/A input_schema N/A description str N/A output_schema str AgeFeature N/A N/A data_point N/A N/A N/A N/A data_point N/A age N/A make_feature N/A input_schema N/A age int N/A output_schema str BrokenFeature N/A N/A data_point N/A N/A N/A N/A RuntimeError N/A make_feature N/A input_schema N/A description str N/A output_schema str N/A SAMPLES N/A N/A pk description 1 nice N/A pk description 2 awesome moment with friends N/A pk description other_field 3 something N/A pk description 4 this is a long description text, deal with it N/A pk description 5 everything is great SimpleEvaluatorTests N/A TestCase N/A test_fit_creates_alive_features_tuple N/A N/A self N/A N/A N/A ev N/A FeatureEvaluator N/A DumbFeatureA N/A N/A N/A self assertFalse N/A hasattr ev alive_features N/A N/A N/A ev fit N/A N/A N/A N/A self assertTrue N/A hasattr ev alive_features N/A test_returns_generator N/A N/A self N/A N/A N/A ev N/A FeatureEvaluator N/A DumbFeatureA N/A N/A N/A ev fit N/A N/A Xt N/A N/A ev transform N/A N/A N/A N/A self assertIsInstance Xt N/A types GeneratorType N/A test_returns_tuples_of_features_length N/A N/A self N/A N/A N/A features N/A DumbFeatureA DumbFeatureA N/A ev N/A FeatureEvaluator features N/A N/A N/A ev fit SAMPLES N/A Xt N/A N/A ev transform SAMPLES N/A x N/A next Xt N/A N/A N/A self assertIsInstance x tuple N/A N/A N/A self assertEqual N/A len x N/A len features N/A test_returns_as_many_tuples_as_samples N/A N/A self N/A N/A N/A ev N/A FeatureEvaluator N/A DumbFeatureA N/A N/A N/A ev fit SAMPLES N/A Xt N/A N/A ev transform SAMPLES N/A N/A N/A self assertEqual N/A len N/A list Xt N/A len SAMPLES N/A test_fit_transform_does_both_things N/A N/A self N/A N/A N/A ev N/A FeatureEvaluator N/A DumbFeatureA N/A Xt_1 N/A N/A ev fit_transform SAMPLES N/A Xt_2 N/A N/A ev transform SAMPLES N/A N/A N/A self assertListEqual N/A list Xt_1 N/A list Xt_2 N/A N/A TolerantFittingCases N/A object N/A N/A fit_method_name apply_fit N/A N/A self N/A args kwargs N/A N/A method N/A getattr N/A self ev N/A self fit_method_name N/A N/A method args kwargs N/A test_once_fitted_says_fitted N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DumbFeatureA N/A N/A N/A self assertFalse N/A N/A self ev fitted N/A N/A N/A self apply_fit N/A N/A N/A N/A self assertTrue N/A N/A self ev fitted N/A test_fit_creates_alive_features_tuple N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DumbFeatureA N/A N/A N/A self assertFalse N/A hasattr N/A self ev alive_features N/A N/A N/A self apply_fit N/A N/A N/A N/A self assertTrue N/A hasattr N/A self ev alive_features N/A test_feature_is_excluded_if_fails_on_firts_M_samples N/A N/A self N/A N/A N/A actual_feature DescriptionFeature N/A description_feature N/A N/A mock Mock wraps actual_feature spec actual_feature N/A N/A self ev N/A TolerantFeatureEvaluator N/A description_feature DumbFeatureA N/A N/A N/A self ev FEATURE_STRICT_UNTIL 2 N/A samples N/A SAMPLES N/A N/A N/A N/A samples insert 0 N/A pk 33 N/A N/A N/A self apply_fit samples N/A N/A N/A self assertNotIn description_feature N/A N/A self ev alive_features N/A N/A N/A self assertEqual N/A description_feature call_count 1 N/A test_feature_is_excluded_after_K_fails_no_matter_when N/A N/A self N/A N/A N/A actual_feature BrokenFeature N/A broken_feature N/A N/A mock Mock wraps actual_feature spec actual_feature N/A N/A self ev N/A TolerantFeatureEvaluator N/A broken_feature DumbFeatureA N/A N/A N/A self ev FEATURE_STRICT_UNTIL 0 N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED 2 N/A N/A N/A self apply_fit N/A SAMPLES N/A N/A N/A N/A self assertNotIn broken_feature N/A N/A self ev alive_features N/A N/A N/A self assertEqual N/A broken_feature call_count N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED 1 N/A test_if_no_more_features_then_blows_up N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A BrokenFeature N/A N/A N/A self ev FEATURE_STRICT_UNTIL 2 N/A N/A N/A self assertRaises N/A N/A self ev NoFeaturesLeftError N/A N/A N/A N/A self apply_fit N/A SAMPLES N/A N/A test_alive_features_can_hide_bad_samples N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DescriptionFeature AgeFeature DumbFeatureA N/A N/A N/A self ev FEATURE_STRICT_UNTIL 0 N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED 1 N/A no_age N/A description i have N/A bad_sample N/A nothing this sample has no description, not age N/A samples N/A bad_sample no_age N/A N/A N/A self apply_fit samples N/A N/A DescriptionFeature N/A N/A self ev alive_features N/A N/A N/A self assertIn AgeFeature N/A N/A self ev alive_features N/A test_when_feature_is_excluded_discarded_sample_is_reconsidered N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DescriptionFeature AgeFeature DumbFeatureA N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED 0 N/A bad_sample N/A nothing this sample has no description, not age N/A samples N/A bad_sample N/A N/A N/A self apply_fit samples N/A N/A N/A self assertEqual N/A N/A self ev alive_features N/A DumbFeatureA N/A N/A TolerantEvaluatorFitTests N/A TestCase TolerantFittingCases N/A N/A fit_method_name fit test_returns_itself N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DumbFeatureA N/A N/A N/A self assertEqual N/A N/A N/A self ev fit N/A N/A self ev N/A N/A TolerantEvaluatorFitTransformTests N/A TestCase TolerantFittingCases N/A N/A fit_method_name fit_transform test_sample_is_excluded_if_any_feature_fails_when_evaluating_it N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DescriptionFeature EntireSampleFeature N/A N/A N/A self ev FEATURE_STRICT_UNTIL 0 N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED N/A N/A len SAMPLES 1 N/A samples N/A SAMPLES N/A N/A nodescription N/A nodescription this sample has no description N/A N/A N/A samples append nodescription N/A result N/A N/A N/A self ev fit_transform samples N/A N/A N/A self assertTrue N/A N/A len N/A list result N/A len samples N/A N/A N/A self assertNotIn nodescription N/A N/A r N/A -1 N/A r result N/A test_if_a_feature_is_excluded_all_results_doesnt_include_it N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DescriptionFeature DumbFeatureA N/A N/A N/A self ev FEATURE_STRICT_UNTIL 0 N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED 0 N/A result N/A N/A N/A self ev fit_transform N/A SAMPLES N/A N/A nodescription tada! N/A N/A N/A self assertTrue result N/A r result N/A N/A N/A N/A self assertEqual N/A len r 1 N/A N/A N/A self assertEqual N/A r N/A 0 a N/A test_when_feature_is_excluded_discarded_samples_are_reevaluated N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A DescriptionFeature DumbFeatureA EntireSampleFeature N/A N/A N/A self ev FEATURE_MAX_ERRORS_ALLOWED 0 N/A samples N/A SAMPLES N/A N/A nodescription N/A nodescription this sample has no description N/A N/A N/A samples append nodescription N/A result N/A list N/A N/A N/A self ev fit_transform samples N/A N/A N/A self assertEqual N/A len samples N/A len result N/A N/A N/A self assertIn nodescription N/A N/A r N/A -1 N/A r result N/A test_consumable_is_consumed_only_once N/A N/A self N/A N/A N/A samples N/A s N/A s SAMPLES N/A N/A self ev N/A TolerantFeatureEvaluator N/A EntireSampleFeature N/A result N/A list N/A N/A N/A self ev fit_transform samples N/A N/A N/A self assertEqual N/A len SAMPLES N/A len result N/A N/A TolerantEvaluatorTransformTests N/A TestCase N/A test_errors_are_raised N/A N/A self N/A N/A N/A N/A self ev N/A TolerantFeatureEvaluator N/A BrokenFeature DumbFeatureA N/A N/A N/A N/A self ev fit N/A transform N/A N/A N/A N/A N/A N/A list N/A N/A N/A self ev transform SAMPLES N/A N/A N/A N/A self assertRaises RuntimeError transform N/A N/A