3939d8b44be7f2a400e94285044a98244ded20a8,Orange/data/util.py,,array_equal,#Any#Any#,98
Before Change
i2, j2, v2 = sp.find(a2)
a1 = v1 if sp.issparse(a1) else a1[i2, j2]
a2 = v2 if sp.issparse(a2) else a2[i1, j1]
index_equal = set(zip(i1, j1)) == set(zip(i2, j2))
return index_equal and np.allclose(a1, a2, equal_nan=True)
def assure_array_dense(a):
After Change
v2 = np.vstack(sp.find(a2)).T
if not (sp.issparse(a1) and sp.issparse(a2)): // Any dense: order indices
v1.sort(axis=0)
v2.sort(axis=0)
return np.allclose(v1, v2, equal_nan=True)
def assure_array_dense(a):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: biolab/orange3
Commit Name: 3939d8b44be7f2a400e94285044a98244ded20a8
Time: 2019-01-04
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/util.py
Class Name:
Method Name: array_equal
Project Name: pfnet/optuna
Commit Name: ab17d5539e5c33c6bacc9a522fd3ae6dd9661314
Time: 2021-03-24
Author: parsiad.azimzadeh@gmail.com
File Name: optuna/_multi_objective.py
Class Name:
Method Name: _get_pareto_front_trials_2d
Project Name: scipy/scipy
Commit Name: fc8c9693b2505b48b1e3dc7c2e477e757d42e549
Time: 2015-04-11
Author: pav@iki.fi
File Name: scipy/sparse/linalg/_onenormest.py
Class Name:
Method Name: _algorithm_2_2