2030ea5e96ca3440a7b043ff3c43bcc7aa278d8a,elephas/mllib/adapter.py,,to_matrix,#Any#,11

Before Change


                              np_array.shape[1],
                              np_array.ravel())
    else:
        raise Exception(An MLLib Matrix can only be created from a two-dimensional numpy array)


def from_vector(vector):
    """ Convert MLlib Vector to numpy array """

After Change


                              np_array.shape[1],
                              np_array.ravel())
    else:
        raise Exception("An MLLib Matrix can only be created from a two-dimensional " +
                        "numpy array, got {}".format(len(np_array.shape)))


def from_vector(vector):
    Convert MLlib Vector to numpy array
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: maxpumperla/elephas
Commit Name: 2030ea5e96ca3440a7b043ff3c43bcc7aa278d8a
Time: 2018-08-13
Author: max.pumperla@googlemail.com
File Name: elephas/mllib/adapter.py
Class Name:
Method Name: to_matrix


Project Name: dmlc/gluon-nlp
Commit Name: 6c1ea59390772c0d9feac7d8fb03381d5db6d91c
Time: 2020-09-28
Author: wawawa@akane.waseda.jp
File Name: src/gluonnlp/cli/average_checkpoint.py
Class Name:
Method Name: main


Project Name: catalyst-team/catalyst
Commit Name: 450b907b25d98be9cb37da9672e772a1a198bb6a
Time: 2019-06-24
Author: scitator@gmail.com
File Name: catalyst/dl/callbacks/checkpoint.py
Class Name: CheckpointCallback
Method Name: load_checkpoint


Project Name: ray-project/ray
Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
Time: 2020-04-02
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_webui.py
Class Name:
Method Name: test_get_webui


Project Name: maxpumperla/elephas
Commit Name: 2030ea5e96ca3440a7b043ff3c43bcc7aa278d8a
Time: 2018-08-13
Author: max.pumperla@googlemail.com
File Name: elephas/mllib/adapter.py
Class Name:
Method Name: to_vector