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__)
After Change
// Check types
if not isinstance(X, np.ndarray):
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)")
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: ncullen93/torchsample
Commit Name: 2079a72d90e527149e527b5cb376b37ddc9e25bd
Time: 2017-05-09
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: Translate
Method Name: __init__
Project Name: neurodsp-tools/neurodsp
Commit Name: c766ed7709046b9d0377bd5e07f8d0a363c26cb8
Time: 2019-03-23
Author: tdonoghue@ucsd.edu
File Name: neurodsp/sim/combined.py
Class Name:
Method Name: sim_combined