9b292db701a05ec2748be18d51a8bc52b98c646c,mlxtend/evaluate/decision_regions.py,,plot_decision_regions,#,15
Before Change
ax = plt.gca()
if not y_ary.dtype == int:
y_ary = y_ary.astype(int)
// check if test data is provided
plot_testdata = True
if not isinstance(X_highlight, np.ndarray):
After Change
else:
plot_testdata = False
if len(X.shape) != 2:
raise ValueError("X must be a 2D array")
if X.shape[1] > 2:
raise ValueError("X cannot have more than 2 feature columns")
elif isinstance(X_highlight, np.ndarray) and len(X_highlight.shape) > 2:
raise ValueError("X_highlight must be a 2D array")
elif len(y.shape) > 1:
raise ValueError("y must be a 1D array")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: rasbt/mlxtend
Commit Name: 9b292db701a05ec2748be18d51a8bc52b98c646c
Time: 2016-07-14
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/decision_regions.py
Class Name:
Method Name: plot_decision_regions
Project Name: LCAV/pyroomacoustics
Commit Name: a0055917b6f6a35cd114c49bf0c75b07d7c9bb10
Time: 2018-05-26
Author: eric.bezzam@epfl.ch
File Name: pyroomacoustics/realtime/dft.py
Class Name: DFT
Method Name: analysis
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 970491cd9b3cb21b043c22b50b4d09f9dd2481a7
Time: 2018-10-19
Author: jan@motl.us
File Name: category_encoders/woe.py
Class Name: WOEEncoder
Method Name: _score