c50597926f69286fce5c416d23271a302b2da962,sklearn/utils/_mask.py,,_get_mask,#Any#Any#,7
Before Change
return np.zeros(X.shape, dtype=bool)
else:
// np.isnan does not work on object dtypes.
return _object_dtype_isnan(X)
else:
return X == value_to_mask
After Change
X_mask : {ndarray, sparse matrix} of shape (n_samples, n_features)
Missing mask.
if not sp.issparse(X):
// For all cases apart of a sparse input where we need to reconstruct
// a sparse output
return _get_dense_mask(X, value_to_mask)
Xt = _get_dense_mask(X.data, value_to_mask)
sparse_constructor = (sp.csr_matrix if X.format == "csr"
else sp.csc_matrix)
Xt_sparse = sparse_constructor(
(Xt, X.indices.copy(), X.indptr.copy()), shape=X.shape, dtype=bool
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: scikit-learn/scikit-learn
Commit Name: c50597926f69286fce5c416d23271a302b2da962
Time: 2020-08-31
Author: devilincarcerated020@yahoo.com
File Name: sklearn/utils/_mask.py
Class Name:
Method Name: _get_mask
Project Name: biolab/orange3
Commit Name: d6626d8e4fd9175eaa677e4fcc5f7b5091752d6a
Time: 2017-09-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/preprocess/preprocess.py
Class Name: Randomize
Method Name: randomize
Project Name: biolab/orange3
Commit Name: d974ef45a6ce198f33e673e6092f5c6285ea63b1
Time: 2019-02-11
Author: pavlin.g.p@gmail.com
File Name: Orange/statistics/util.py
Class Name:
Method Name: nanmean