c319bb5acd058333da904d6a7fb08c7fda64813c,tests/test_factor_analyzer.py,TestFactorAnalyzer,test_analyze_impute_drop,#TestFactorAnalyzer#,87
Before Change
expected = expected.dropna()
expected_corr = expected.corr()
fa = FactorAnalyzer()
fa.analyze(data, 1, rotation=None, impute="drop")
assert_frame_equal(fa.corr, expected_corr)
@raises(ValueError)
def test_analyze_impute_value_error(self):
After Change
expected_corr = expected.corr()
expected_corr = expected_corr.values
fa = FactorAnalyzer(rotation=None, impute="drop", n_factors=1)
fa.fit(data)
assert_array_almost_equal(fa.corr_, expected_corr)
@raises(ValueError)
def test_analyze_impute_value_error(self):
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_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_median
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_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_mean