b39db6e2bf0c806554578b5c9895d9b7ef6bd48c,Orange/statistics/util.py,,countnans,#Any#Any#Any#Any#Any#,57
Before Change
if weights is not None and weights.shape != X.shape:
counts = counts * weights
else:
if any(attr is not None for attr in [axis, dtype]) or \
keepdims is not False:
raise ValueError("Arguments axis, dtype and keepdims"
"are not yet supported on sparse data!")
counts = _count_nans_per_row_sparse(X, weights)
return counts
After Change
// actually a vector (e.g. [[1 2 3]]), but has `ndim=2` due to scipy
// implementation
if axis is None or X.shape[0] == 1:
counts = counts.sum()
return counts
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: biolab/orange3
Commit Name: b39db6e2bf0c806554578b5c9895d9b7ef6bd48c
Time: 2017-09-09
Author: pavlin.g.p@gmail.com
File Name: Orange/statistics/util.py
Class Name:
Method Name: countnans
Project Name: automl/auto-sklearn
Commit Name: de074e29f36c33d5a8627f9e8ab92f1e0fd46d82
Time: 2014-12-15
Author: feurerm@informatik.uni-freiburg.de
File Name: AutoSklearn/implementations/OneHotEncoder.py
Class Name: OneHotEncoder
Method Name: _transform
Project Name: geomstats/geomstats
Commit Name: 8917a9d9c025613272544be55580d26f58dffe6a
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: closest_rotation_matrix
Project Name: geomstats/geomstats
Commit Name: 8917a9d9c025613272544be55580d26f58dffe6a
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name: SpecialOrthogonalGroup
Method Name: rotation_vector_from_matrix