1a6d4020c53e2b39e224616481528fad901cbd4e,deeppavlov/core/commands/infer.py,,interact_model,#Any#,95

Before Change


        if len(args) == 1:
            pred = model(args)
        else:
            pred = model([args])

        print(">>", *pred)

After Change


                return

        pred = model(*args)
        if len(model.out_params) > 1:
            pred = zip(*pred)

        print(">>", *pred)


def predict_on_stream(config_path: str, batch_size: int = 1, file_path: Optional[str] = None) -> None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 1a6d4020c53e2b39e224616481528fad901cbd4e
Time: 2018-10-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: interact_model


Project Name: deepmipt/DeepPavlov
Commit Name: 1a6d4020c53e2b39e224616481528fad901cbd4e
Time: 2018-10-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: predict_on_stream


Project Name: deepchem/deepchem
Commit Name: 87bdca6a7d594cef6b0efe2324e1a18236a71714
Time: 2019-05-13
Author: peastman@stanford.edu
File Name: deepchem/models/keras_model.py
Class Name: KerasModel
Method Name: fit_generator