Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Who's neocortex has seen these before? blue-yonder/tsfresh/i8_add_python3_support
Who's neocortex has seen these before?
These panda scipy py27 py35 are probably buried in some change in pandas relating to some change is Python 3
like range type changing from type list to class or similar. Please just scan through and see if any bells rings.
Perhaps a bell may ring on:
- AttributeError errors 'assertItemsEqual' in a few contexts, but the following may help to pin it down, specifically
- test_mass_quantile
- test_ar_coefficient
- the others are ok, so something specific or common to these two
- On where pandas or scipy may be doing something py27 that has changed py3
```
(tsfresh-py352) gary@mc11:/opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh$ ../../bin/python3.5 setup.py test
running test
running egg_info
writing dependency_links to tsfresh.egg-info/dependency_links.txt
writing top-level names to tsfresh.egg-info/top_level.txt
writing tsfresh.egg-info/PKG-INFO
writing requirements to tsfresh.egg-info/requires.txt
[pbr] Processing SOURCES.txt
[pbr] In git context, generating filelist from git
warning: no files found matching 'AUTHORS'
warning: no files found matching 'ChangeLog'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'tsfresh.egg-info/SOURCES.txt'
running build_ext
================================================================================================================= test session starts ==================================================================================================================
platform linux -- Python 3.5.2, pytest-3.0.3, py-1.4.31, pluggy-0.4.0 -- /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh/../../bin/python3.5
cachedir: .cache
rootdir: /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh, inifile: setup.cfg
plugins: xdist-1.15.0, cov-2.4.0
[gw0] linux Python 3.5.2 cwd: /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh
[gw1] linux Python 3.5.2 cwd: /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh
[gw2] linux Python 3.5.2 cwd: /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh
[gw3] linux Python 3.5.2 cwd: /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh
[gw0] Python 3.5.2 (default, Jul 11 2016, 13:20:59) -- [GCC 4.8.4]
[gw1] Python 3.5.2 (default, Jul 11 2016, 13:20:59) -- [GCC 4.8.4]
[gw2] Python 3.5.2 (default, Jul 11 2016, 13:20:59) -- [GCC 4.8.4]
[gw3] Python 3.5.2 (default, Jul 11 2016, 13:20:59) -- [GCC 4.8.4]
gw0 [105] / gw1 [105] / gw2 [105] / gw3 [105]
scheduling tests via LoadScheduling
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_all_features_bad
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_all_features_good
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_binary_target_mixed_case
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_binary_target_binary_features
[gw0] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_all_features_bad
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_binomial_target_realvalued_features
[gw1] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_all_features_good
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_real_target_binary_features
[gw1] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_real_target_binary_features
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_binary_target_binary_features
[gw0] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_binomial_target_realvalued_features
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_all_features_good
[gw0] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_all_features_good
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_real_target_binary_features
[gw0] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_real_target_binary_features
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_abs_energy
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_abs_energy
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_autocorrelation
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_autocorrelation
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_count_below_mean
[gw2] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_binary_target_mixed_case
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_all_features_bad
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_count_below_mean
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_fft_coefficient
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_fft_coefficient
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_first_location_of_maximum
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_first_location_of_maximum
[gw2] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_all_features_bad
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_binomial_target_realvalued_features
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_first_location_of_minimum
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_first_location_of_minimum
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_has_duplicate
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_has_duplicate
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_has_duplicate_max
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_has_duplicate_max
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_has_duplicate_min
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_has_duplicate_min
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_kurtosis
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_kurtosis
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_large_number_of_peaks
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_large_number_of_peaks
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_large_standard_deviation
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_large_standard_deviation
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_last_location_maximum
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_last_location_maximum
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_last_location_of_minimum
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_last_location_of_minimum
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_length
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_length
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_longest_strike_above_mean
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_longest_strike_above_mean
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_longest_strike_below_mean
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_longest_strike_below_mean
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mass_quantile
[gw0] FAILED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mass_quantile
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_abs_change
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_abs_change
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_abs_change_quantiles
[gw2] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_binomial_target_realvalued_features
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test___get_length_sequences_where
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_abs_change_quantiles
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_autocorrelation
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test___get_length_sequences_where
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_augmented_dickey_fuller
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_augmented_dickey_fuller
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_autocorrelation
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_change
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_count_above_mean
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_change
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_second_derivate_central
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_mean_second_derivate_central
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_median
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_median
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_spkt_welch_density
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_spkt_welch_density
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_standard_deviation
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_standard_deviation
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_sum
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_sum
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_symmetry_looking
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_count_above_mean
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_symmetry_looking
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_number_cwt_peaks
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_number_cwt_peaks
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_time_reversal_asymmetry_statistic
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_number_peaks
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_time_reversal_asymmetry_statistic
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_value_count
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_value_count
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_variance
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_variance
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_variance_larger_than_standard_deviation
[gw0] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_variance_larger_than_standard_deviation
tests/feature_extraction/test_settings.py::TestSettingsObject::test_from_columns
[gw0] FAILED tests/feature_extraction/test_settings.py::TestSettingsObject::test_from_columns
tests/feature_extraction/test_ts_features.py::FeatureExtractorTestCase::test_calculate_ts_features
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_number_peaks
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_quantile
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_quantile
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_range_count
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_range_count
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_skewness
[gw2] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_skewness
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_binary_less
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_binary_less
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_realvalued_greater
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_realvalued_greater
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_realvalued_mann_less
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_realvalued_mann_less
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_realvalued_smir_less
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_realvalued_smir_less
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_binary_greater
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_binary_greater
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_binary_less
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_binary_less
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_realvalued_greater
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_realvalued_greater
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_realvalued_less
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_realvalued_features_realvalued_less
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fb_binary
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fb_binary
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fb_series
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fb_series
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fr_binary
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fr_binary
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fr_config
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fr_config
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fr_series
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tb_fr_series
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tr_fb_binary
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tr_fb_binary
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tr_fb_series
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tr_fb_series
tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tr_fr_series
[gw2] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelectionConfigTestCase::test_fs_tr_fr_series
tests/transformers/test_feature_augmenter.py::FeatureAugmenterTestCase::test_add_features_to_only_a_part
[gw2] PASSED tests/transformers/test_feature_augmenter.py::FeatureAugmenterTestCase::test_add_features_to_only_a_part
tests/transformers/test_feature_augmenter.py::FeatureAugmenterTestCase::test_fit_and_transform
[gw2] PASSED tests/transformers/test_feature_augmenter.py::FeatureAugmenterTestCase::test_fit_and_transform
tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_extract_relevant_features
[gw2] PASSED tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_extract_relevant_features
tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_not_fitted
[gw2] PASSED tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_not_fitted
tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_nothing_relevant
[gw2] PASSED tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_nothing_relevant
tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_with_numpy_array
[gw2] PASSED tests/transformers/test_feature_selector.py::FeatureSelectorTestCase::test_with_numpy_array
tests/transformers/test_full_pipeline.py::FullPipelineTestCase_robot_failures::test_relevant_extraction
[gw0] PASSED tests/feature_extraction/test_ts_features.py::FeatureExtractorTestCase::test_calculate_ts_features
tests/feature_extraction/test_ts_features.py::FeatureExtractorTestCase::test_calculate_ts_features_after_randomisation
[gw3] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_binary_target_binary_features
tests/test_feature_significance.py::FeatureSignificanceTestCase::test_real_target_mixed_case
[gw3] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCase::test_real_target_mixed_case
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_binary_target_mixed_case
[gw1] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_binary_target_binary_features
tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_real_target_mixed_case
[gw1] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_real_target_mixed_case
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_absolute_sum_of_changes
[gw1] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_absolute_sum_of_changes
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_binned_entropy
[gw1] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_binned_entropy
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_cwt_coefficients
[gw1] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_cwt_coefficients
tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_no_timeseries
[gw1] PASSED tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_no_timeseries
tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_not_fitted
[gw1] PASSED tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_not_fitted
tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_nothing_relevant
[gw1] PASSED tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_nothing_relevant
tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_df
[gw1] PASSED tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_df
tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_dictionaries_one_row
[gw1] PASSED tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_dictionaries_one_row
tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_dictionaries_two_rows
[gw1] PASSED tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_dictionaries_two_rows
tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_dictionaries_two_rows_sorted
[gw1] PASSED tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_dictionaries_two_rows_sorted
tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_wrong_input
[gw1] PASSED tests/utilities/test_dataframe_functions.py::NormalizeTestCase::test_with_wrong_input
tests/utilities/test_dataframe_functions.py::CheckForNanTestCase::test_all_columns
[gw1] PASSED tests/utilities/test_dataframe_functions.py::CheckForNanTestCase::test_all_columns
tests/utilities/test_dataframe_functions.py::CheckForNanTestCase::test_not_all_columns
[gw1] PASSED tests/utilities/test_dataframe_functions.py::CheckForNanTestCase::test_not_all_columns
tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_get_range_values
[gw1] PASSED tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_get_range_values
tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_impute_range
[gw1] PASSED tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_impute_range
tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_impute_zero
[gw1] PASSED tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_impute_zero
tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_toplevel_impute
[gw1] PASSED tests/utilities/test_dataframe_functions.py::ImputeTestCase::test_toplevel_impute
tests/utilities/test_dataframe_functions.py::RestrictTestCase::test_restrict_dataframe
[gw1] PASSED tests/utilities/test_dataframe_functions.py::RestrictTestCase::test_restrict_dataframe
[gw3] PASSED tests/test_feature_significance.py::FeatureSignificanceTestCaseWithOtherHypothesis::test_binary_target_mixed_case
tests/test_relevant_feature_extraction.py::RelevantFeatureExtractionTestCase::test_functional_equality
[gw0] FAILED tests/feature_extraction/test_ts_features.py::FeatureExtractorTestCase::test_calculate_ts_features_after_randomisation
[gw3] PASSED tests/test_relevant_feature_extraction.py::RelevantFeatureExtractionTestCase::test_functional_equality
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_ar_coefficient
[gw3] FAILED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_ar_coefficient
[gw2] FAILED tests/transformers/test_full_pipeline.py::FullPipelineTestCase_robot_failures::test_relevant_extraction
tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_binary_greater
tests/utilities/test_dataframe_functions.py::RestrictTestCase::test_restrict_dict
tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_impute_works
[gw1] PASSED tests/utilities/test_dataframe_functions.py::RestrictTestCase::test_restrict_dict
tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_catch_Numbers
[gw3] PASSED tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_catch_Numbers
[gw0] PASSED tests/feature_selection/test_feature_selectors.py::FeatureSelection::test_feature_selection_target_binary_features_binary_greater
[gw2] PASSED tests/transformers/test_relevant_feature_extractor.py::RelevantFeatureAugmenterTestCase::test_impute_works Coverage.py warning: No data was collected.
----------- coverage: platform linux, python 3.5.2-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
------------------------------------------------------------------------------------------------
tsfresh/convenience/relevant_extraction.py 17 2 6 3 78% 44, 58, 43->44, 46->50, 55->58
tsfresh/examples/__init__.py 2 0 0 0 100%
tsfresh/examples/robot_execution_failures.py 46 9 16 2 76% 60-74, 94, 56->60, 93->94
tsfresh/feature_extraction/extraction.py 41 5 26 5 82% 73-75, 79, 98, 72->73, 78->79, 97->98, 183->181, 186->190
tsfresh/feature_extraction/feature_calculators.py 258 5 72 4 97% 271, 611, 823-826, 87->89, 270->271, 610->611, 820->826
tsfresh/feature_extraction/settings.py 116 12 87 7 89% 121-127, 153, 260, 265, 276, 303, 310, 152->153, 186->150, 259->260, 264->265, 273->276, 302->303, 307->310
tsfresh/feature_selection/__init__.py 2 0 0 0 100%
tsfresh/feature_selection/feature_selector.py 66 5 28 1 91% 151-158, 149->151
tsfresh/feature_selection/selection.py 21 5 10 4 65% 91, 93, 95-98, 87->90, 90->91, 92->93, 94->95
tsfresh/feature_selection/settings.py 11 0 0 0 100%
tsfresh/feature_selection/significance_tests.py 62 0 16 0 100%
tsfresh/transformers/feature_augmenter.py 23 0 2 0 100%
tsfresh/transformers/feature_selector.py 21 0 8 0 100%
tsfresh/transformers/relevant_feature_augmenter.py 46 3 14 4 88% 183, 212, 226, 179->183, 187->190, 211->212, 222->226
tsfresh/utilities/dataframe_functions.py 103 2 86 2 98% 184, 262, 180->184, 255->262
------------------------------------------------------------------------------------------------
TOTAL 835 48 371 32 92%
======================================================================================================================= FAILURES =======================================================================================================================
____________________________________________________________________________________________________ FeatureCalculationTestCase.test_mass_quantile _____________________________________________________________________________________________________
[gw0] linux -- Python 3.5.2 /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh/../../bin/python3.5
self = <test_feature_calculations.FeatureCalculationTestCase testMethod=test_mass_quantile>
def test_mass_quantile(self):
x = [1] * 101
c = "TEST"
param = [{"q": 0.5}]
expected_index = ["TEST__index_mass_quantile__q_0.5"]
res = index_mass_quantile(x, c, param)
self.assertIsInstance(res, pd.Series)
> self.assertItemsEqual(list(res.index), expected_index)
E AttributeError: 'FeatureCalculationTestCase' object has no attribute 'assertItemsEqual'
tests/feature_extraction/test_feature_calculations.py:282: AttributeError
_________________________________________________________________________________________________________ TestSettingsObject.test_from_columns _________________________________________________________________________________________________________
[gw0] linux -- Python 3.5.2 /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh/../../bin/python3.5
self = <test_settings.TestSettingsObject testMethod=test_from_columns>
def test_from_columns(self):
tsn = "TEST_TIME_SERIES"
fset = FeatureExtractionSettings()
self.assertRaises(TypeError, fset.from_columns, 42)
self.assertRaises(TypeError, fset.from_columns, 42)
self.assertRaises(ValueError, fset.from_columns, ["This is not a column name"])
self.assertRaises(ValueError, fset.from_columns, ["This__neither"])
self.assertRaises(ValueError, fset.from_columns, ["This__also__not"])
# Aggregate functions
feature_names = [tsn + '__sum_values', tsn + "__median", tsn + "__length"]
# Aggregate functions with params
feature_names += [tsn + '__quantile__q_10', tsn + '__quantile__q_70', tsn + '__number_peaks__n_30',
tsn + '__value_count__value_inf', tsn + '__value_count__value_-inf',
tsn + '__value_count__value_nan']
# Apply functions
feature_names += [tsn + '__ar_coefficient__k_20__coeff_4', tsn + '__ar_coefficient__coeff_10__k_-1']
cset = fset.from_columns(feature_names)
> self.assertItemsEqual(list(cset.kind_to_calculation_settings_mapping[tsn].keys()),
["sum_values", "median", "length", "quantile", "number_peaks", "ar_coefficient",
"value_count"])
E AttributeError: 'TestSettingsObject' object has no attribute 'assertItemsEqual'
tests/feature_extraction/test_settings.py:39: AttributeError
_______________________________________________________________________________________ FeatureExtractorTestCase.test_calculate_ts_features_after_randomisation ________________________________________________________________________________________
[gw0] linux -- Python 3.5.2 /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh/../../bin/python3.5
self = <test_ts_features.FeatureExtractorTestCase testMethod=test_calculate_ts_features_after_randomisation>
def test_calculate_ts_features_after_randomisation(self):
df = self.create_test_data_sample()
df_random = df.copy().sample(frac=1)
extracted_features = extract_features(df, self.settings, "id", "sort", "kind", "val").sort_index()
extracted_features_from_random = extract_features(df_random, self.settings,
"id", "sort", "kind", "val").sort_index()
> self.assertItemsEqual(extracted_features.columns, extracted_features_from_random.columns)
E AttributeError: 'FeatureExtractorTestCase' object has no attribute 'assertItemsEqual'
tests/feature_extraction/test_ts_features.py:51: AttributeError
----------------------------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------------------------
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/pandas/computation/expressions.py:182: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead
unsupported[op_str]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/statsmodels/regression/linear_model.py:1148: RuntimeWarning: divide by zero encountered in double_scalars
return np.dot(wresid, wresid) / self.df_resid
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/scipy/signal/spectral.py:772: UserWarning: nperseg = 256, is greater than input length = 20, using nperseg = 20
'using nperseg = {1:d}'.format(nperseg, x.shape[-1]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/pandas/computation/expressions.py:182: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead
unsupported[op_str]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/statsmodels/regression/linear_model.py:1148: RuntimeWarning: divide by zero encountered in double_scalars
return np.dot(wresid, wresid) / self.df_resid
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/scipy/signal/spectral.py:772: UserWarning: nperseg = 256, is greater than input length = 20, using nperseg = 20
'using nperseg = {1:d}'.format(nperseg, x.shape[-1]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/pandas/computation/expressions.py:182: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead
unsupported[op_str]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/statsmodels/regression/linear_model.py:1148: RuntimeWarning: divide by zero encountered in double_scalars
return np.dot(wresid, wresid) / self.df_resid
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/scipy/signal/spectral.py:772: UserWarning: nperseg = 256, is greater than input length = 20, using nperseg = 20
'using nperseg = {1:d}'.format(nperseg, x.shape[-1]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/pandas/computation/expressions.py:182: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead
unsupported[op_str]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/statsmodels/regression/linear_model.py:1148: RuntimeWarning: divide by zero encountered in double_scalars
return np.dot(wresid, wresid) / self.df_resid
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/scipy/signal/spectral.py:772: UserWarning: nperseg = 256, is greater than input length = 20, using nperseg = 20
'using nperseg = {1:d}'.format(nperseg, x.shape[-1]))
____________________________________________________________________________________________________ FeatureCalculationTestCase.test_ar_coefficient ____________________________________________________________________________________________________
[gw3] linux -- Python 3.5.2 /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh/../../bin/python3.5
self = <test_feature_calculations.FeatureCalculationTestCase testMethod=test_ar_coefficient>
def test_ar_coefficient(self):
# Test for X_i = 2.5 * X_{i-1} + 1
c = "TEST"
param = [{"k": 1, "coeff": 0}, {"k": 1, "coeff": 1}]
shuffle(param)
x = [1] + 9 * [0]
for i in range(1, len(x)):
x[i] = 2.5 * x[i - 1] + 1
res = ar_coefficient(x, c, param)
expected_index = ["TEST__ar_coefficient__k_1__coeff_0", "TEST__ar_coefficient__k_1__coeff_1"]
self.assertIsInstance(res, pd.Series)
> self.assertItemsEqual(list(res.index), expected_index)
E AttributeError: 'FeatureCalculationTestCase' object has no attribute 'assertItemsEqual'
tests/feature_extraction/test_feature_calculations.py:334: AttributeError
_____________________________________________________________________________________________ FullPipelineTestCase_robot_failures.test_relevant_extraction _____________________________________________________________________________________________
[gw2] linux -- Python 3.5.2 /opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh/../../bin/python3.5
self = <test_full_pipeline.FullPipelineTestCase_robot_failures testMethod=test_relevant_extraction>
def test_relevant_extraction(self):
self.assertGreater(len(self.y), 0)
self.assertGreater(len(self.df), 0)
self.assertGreater(len(self.timeseries), 0)
relevant_augmenter = RelevantFeatureAugmenter(column_id="id", column_sort="time")
relevant_augmenter.set_timeseries_container(self.timeseries)
pipe = Pipeline([("relevant_augmenter", relevant_augmenter)])
pipe.fit(self.df, self.y)
extracted_features = pipe.transform(self.df)
some_expected_features = {'a__abs_energy',
'a__absolute_sum_of_changes',
'a__ar_coefficient__k_10__coeff_0',
'a__autocorrelation__lag_1',
'a__binned_entropy__max_bins_10',
'a__count_above_mean',
'a__index_mass_quantile__q_0.1',
'a__index_mass_quantile__q_0.2',
'a__index_mass_quantile__q_0.3',
'a__index_mass_quantile__q_0.4',
'a__index_mass_quantile__q_0.6',
'a__index_mass_quantile__q_0.7',
'a__index_mass_quantile__q_0.8',
'a__index_mass_quantile__q_0.9',
'a__longest_strike_above_mean',
'a__maximum',
'a__mean_abs_change',
'a__mean_abs_change_quantiles__qh_0.2__ql_0.0',
'a__mean_abs_change_quantiles__qh_0.4__ql_0.0',
'a__mean_abs_change_quantiles__qh_0.4__ql_0.2',
'a__mean_abs_change_quantiles__qh_0.6__ql_0.0',
'a__mean_abs_change_quantiles__qh_0.6__ql_0.2',
'a__mean_abs_change_quantiles__qh_0.6__ql_0.4',
'a__mean_abs_change_quantiles__qh_0.8__ql_0.0',
'a__mean_abs_change_quantiles__qh_0.8__ql_0.2',
'a__mean_abs_change_quantiles__qh_0.8__ql_0.4',
'a__mean_abs_change_quantiles__qh_1.0__ql_0.0',
'a__mean_abs_change_quantiles__qh_1.0__ql_0.2',
'a__mean_abs_change_quantiles__qh_1.0__ql_0.4',
'a__mean_abs_change_quantiles__qh_1.0__ql_0.6',
'a__mean_abs_change_quantiles__qh_1.0__ql_0.8',
'a__mean_autocorrelation',
'a__minimum',
'a__quantile__q_0.1',
'a__range_count__max_1__min_-1',
'a__spkt_welch_density__coeff_2',
'a__standard_deviation',
'a__value_count__value_0',
'a__variance',
'a__variance_larger_than_standard_deviation'}
# print(extracted_features.columns)
> self.assertTrue(some_expected_features.issubset(set(extracted_features.columns)))
E AssertionError: False is not true
tests/transformers/test_full_pipeline.py:77: AssertionError
----------------------------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------------------------
You have already downloaded the Robot Execution Failures LP1 Data Set.
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/pandas/computation/expressions.py:182: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead
unsupported[op_str]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/pandas/computation/expressions.py:182: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead
unsupported[op_str]))
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/statsmodels/regression/linear_model.py:712: RuntimeWarning: divide by zero encountered in log
(self.endog - np.dot(self.exog,params)))) -\
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/statsmodels/regression/linear_model.py:1148: RuntimeWarning: divide by zero encountered in double_scalars
return np.dot(wresid, wresid) / self.df_resid
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/scipy/signal/spectral.py:772: UserWarning: nperseg = 256, is greater than input length = 15, using nperseg = 15
'using nperseg = {1:d}'.format(nperseg, x.shape[-1]))
The replacement column a__spkt_welch_density__coeff_8 did not have any finite values. Filling with zeros.
[test_feature_significance] Feature a__value_count__value_inf is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.65 is constant
[test_feature_significance] Feature a__large_number_of_peaks__n_3 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.45 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.8__qh_0.6 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.0 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.55 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.8__qh_0.4 is constant
[test_feature_significance] Feature a__large_standard_deviation__r_0.15000000000000002 is constant
[test_feature_significance] Feature a__large_standard_deviation__r_0.2 is constant
[test_feature_significance] Feature a__value_count__value_nan is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.8__qh_0.2 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.9 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.5 is constant
[test_feature_significance] Feature a__fft_coefficient__coeff_9 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.9500000000000001 is constant
[test_feature_significance] Feature a__large_standard_deviation__r_0.1 is constant
[test_feature_significance] Feature a__large_standard_deviation__r_0.0 is constant
[test_feature_significance] Feature a__spkt_welch_density__coeff_8 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.8500000000000001 is constant
[test_feature_significance] Feature a__large_number_of_peaks__n_1 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.8 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.6__qh_0.6 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.6000000000000001 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.6__qh_0.4 is constant
[test_feature_significance] Feature a__large_standard_deviation__r_0.05 is constant
[test_feature_significance] Feature a__value_count__value_-inf is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.2__qh_0.2 is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.75 is constant
[test_feature_significance] Feature a__fft_coefficient__coeff_8 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.4__qh_0.2 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.8__qh_0.8 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.6__qh_0.2 is constant
[test_feature_significance] Feature a__mean_abs_change_quantiles__ql_0.4__qh_0.4 is constant
[test_feature_significance] Feature a__large_number_of_peaks__n_5 is constant
[test_feature_significance] Feature a__length is constant
[test_feature_significance] Feature a__symmetry_looking__r_0.7000000000000001 is constant
/opt/python_virtualenv/projects/tsfresh-py352/lib/python3.5/site-packages/scipy/signal/spectral.py:772: UserWarning: nperseg = 256, is greater than input length = 15, using nperseg = 15
'using nperseg = {1:d}'.format(nperseg, x.shape[-1]))
======================================================================================================== 5 failed, 100 passed in 22.13 seconds =========================================================================================================
(tsfresh-py352) gary@mc11:/opt/python_virtualenv/projects/tsfresh-py352/apps/tsfresh$
```
If anyone noticed the print(extracted_features.columns) it became print(df), the de facto debug and pl (people learning) command in data science :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.