17568750c85c2cbc3c41b22a4b3498006cd0ed67,dask_ml/utils.py,,check_array,#Any#,89

Before Change


    and passed to scikit-learn"s ``check_array`` with all the additional
    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


                raise TypeError(msg)

        if remove_zero_chunks:
            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)
Italian Trulli
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: has2k1/plotnine
Commit Name: b8f8bbb6e8f5480174c4c49445bc0e7d952f3946
Time: 2014-04-25
Author: eric.chiang.m@gmail.com
File Name: ggplot/geoms/geom_abline.py
Class Name: geom_abline
Method Name: _plot_unit


Project Name: hanxiao/bert-as-service
Commit Name: 5de7e96920ea0a97e77f10188b4f96ce1b7bd80e
Time: 2018-11-14
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run