c319bb5acd058333da904d6a7fb08c7fda64813c,tests/test_factor_analyzer.py,TestFactorAnalyzer,test_analyze_infinite,#TestFactorAnalyzer#,122

Before Change


                             "C": [0.5, float("inf"), 1.0]},
                            index=["A", "B", "C"])

        fa = FactorAnalyzer()
        fa.analyze(data, 1, impute="drop", use_corr_matrix=True)

    def test_remove_all_columns(self):
        // test that columns with string values are removed.

After Change


                             "C": [0.5, float("inf"), 1.0]},
                            index=["A", "B", "C"])

        fa = FactorAnalyzer(impute="drop", n_factors=1, is_corr_matrix=True)
        fa.fit(data)

    def test_smc_is_r_squared(self):
        // test that SMC is roughly equivalent to R-squared values.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: EducationalTestingService/factor_analyzer
Commit Name: c319bb5acd058333da904d6a7fb08c7fda64813c
Time: 2019-04-02
Author: jbiggs@ets.org
File Name: tests/test_factor_analyzer.py
Class Name: TestFactorAnalyzer
Method Name: test_analyze_infinite


Project Name: EducationalTestingService/factor_analyzer
Commit Name: c319bb5acd058333da904d6a7fb08c7fda64813c
Time: 2019-04-02
Author: jbiggs@ets.org
File Name: tests/test_factor_analyzer.py
Class Name: TestFactorAnalyzer
Method Name: test_analyze_impute_drop


Project Name: EducationalTestingService/factor_analyzer
Commit Name: c319bb5acd058333da904d6a7fb08c7fda64813c
Time: 2019-04-02
Author: jbiggs@ets.org
File Name: tests/test_factor_analyzer.py
Class Name: TestFactorAnalyzer
Method Name: test_analyze_impute_mean


Project Name: EducationalTestingService/factor_analyzer
Commit Name: c319bb5acd058333da904d6a7fb08c7fda64813c
Time: 2019-04-02
Author: jbiggs@ets.org
File Name: tests/test_factor_analyzer.py
Class Name: TestFactorAnalyzer
Method Name: test_analyze_impute_value_error


Project Name: EducationalTestingService/factor_analyzer
Commit Name: c319bb5acd058333da904d6a7fb08c7fda64813c
Time: 2019-04-02
Author: jbiggs@ets.org
File Name: tests/test_factor_analyzer.py
Class Name: TestFactorAnalyzer
Method Name: test_analyze_impute_median