4d0483edd1468855df714f77bca1a0a93f01cbce,tests/test_features/test_pca.py,PCADecompositionTests,test_scale_true_3d_execption,#PCADecompositionTests#,217
Before Change
Test the PCADecomposition visualizer 3 dims scaled on 2 dim data set (catch ValueError).
X = np.array(
[[2.318, 2.727],
[2.315, 2.726],
[2.315, 2.724],
[2.110, 3.609],
[2.110, 3.626],
[2.110, 3.620]]
)
y = np.array([1, 0])
params = {"scale": True, "center": False, "proj_dim": 3, "col": y}
After Change
Test the PCADecomposition visualizer 3 dims scaled on 2 dim data set (catch ValueError).
X = np.random.normal(loc=2, size=(100, 2))
params = {"scale": True, "proj_dim": 3}
with pytest.raises(ValueError, match="n_components=3 must be between 0 and n_features"):
pca = PCADecomposition(**params)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: DistrictDataLabs/yellowbrick
Commit Name: 4d0483edd1468855df714f77bca1a0a93f01cbce
Time: 2018-06-18
Author: benjamin@bengfort.com
File Name: tests/test_features/test_pca.py
Class Name: PCADecompositionTests
Method Name: test_scale_true_3d_execption
Project Name: BYU-PCCL/holodeck
Commit Name: c0d3f71a194f30b8b25cb37813452367a02fc45a
Time: 2017-09-05
Author: joshua.greaves@googlemail.com
File Name: example.py
Class Name:
Method Name: editor_example
Project Name: neuropsychology/NeuroKit.py
Commit Name: 8c05bf284a980fe07b8635e5c9415dea24fb0026
Time: 2017-04-28
Author: dom.mak19@gmail.com
File Name: examples/UnderDev/EMG/test_EMG.py
Class Name:
Method Name:
Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 4f9f28da19466e18165feb5a3dab0e82f686b926
Time: 2019-01-13
Author: jonas.rothfuss@gmx.de
File Name: tests/unittests_estimators.py
Class Name: TestConditionalDensityEstimators_2d_gaussian
Method Name: test_LSCD_with_2d_gaussian