17568750c85c2cbc3c41b22a4b3498006cd0ed67,dask_ml/utils.py,,check_array,#Any#,89
Before Change
arguments.
accept_dask_array = kwargs.pop("accept_dask_array", True)
preserve_pandas_dataframe = kwargs.pop("preserve_pandas_dataframe", False)
accept_dask_dataframe = kwargs.pop("accept_dask_dataframe", False)
accept_unknown_chunks = kwargs.pop("accept_unknown_chunks", False)
accept_multiple_blocks = kwargs.pop("accept_multiple_blocks", False)
After Change
if min(array.chunks[0]) == 0:
// scikit-learn does not gracefully handle length-0 chunks
// in some cases (e.g. pairwise_distances).
chunks2 = tuple(x for x in array.chunks[0] if x != 0)
array = array.rechunk({0: chunks2})
// hmmm, we want to catch things like shape errors.
// I"d like to make a small sample somehow
shape = array.shape
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: dask/dask-ml
Commit Name: 17568750c85c2cbc3c41b22a4b3498006cd0ed67
Time: 2019-10-22
Author: TomAugspurger@users.noreply.github.com
File Name: dask_ml/utils.py
Class Name:
Method Name: check_array
Project Name: keras-team/keras
Commit Name: 002a9d5d2b2c26fff63293e3007ede9ab7dee616
Time: 2015-11-02
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/core.py
Class Name: Merge
Method Name: output_shape
Project Name: keras-team/keras
Commit Name: 57612707c1434ed3b18f9cad5cf2e6dd8b7b3b7d
Time: 2015-11-02
Author: roller@cs.utexas.edu
File Name: keras/layers/core.py
Class Name: Merge
Method Name: __init__