9b292db701a05ec2748be18d51a8bc52b98c646c,mlxtend/evaluate/decision_regions.py,,plot_decision_regions,#,15
Before Change
if isinstance(y, list):
y_ary = np.array(y)
else:
y_ary = y
for a in (X, y_ary) :
if not isinstance(a, np.ndarray):
raise ValueError("%s must be a NumPy array." % a.__name__)
if ax is None:
ax = plt.gca()
if not y_ary.dtype == int:
y_ary = y_ary.astype(int)
// check if test data is provided
After Change
raise ValueError("X must be a 2D NumPy array")
if not isinstance(y, np.ndarray):
raise ValueError("y must be a 1D NumPy array")
if not np.issubdtype(y.dtype, np.integer):
raise ValueError("y must have be an integer array. "
"Try passing the array as y.astype(np.integer)")
if ax is None:
ax = plt.gca()
// check if test data is provided
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: bethgelab/foolbox
Commit Name: 376058931d26b5351e9aed2dcf9dd2932b0cadab
Time: 2020-02-07
Author: git@jonasrauber.de
File Name: foolbox/ext/native/attacks/basic_iterative_method.py
Class Name: L2BasicIterativeAttack
Method Name: __call__
Project Name: tristandeleu/pytorch-maml-rl
Commit Name: 01b8f6eef41c36f12019adfc23ace2a100d77610
Time: 2019-11-24
Author: tristan.deleu@gmail.com
File Name: maml_rl/envs/sync_vector_env.py
Class Name: SyncVectorEnv
Method Name: __init__