af5aeb26d96291562884f17cbfbbd917636bc7b7,mindsdb/interfaces/model/model_interface.py,ModelInterface,create,#ModelInterface#Any#,12

Before Change


        self.controller = ModelController.remote()

    def create(self, name):
        fut = self.controller.create.remote(name)
        return ray.get(fut)

    def learn(self, name, from_data, to_predict, datasource_id, kwargs={}):
        join_learn_process = kwargs.get("join_learn_process", False)
        if "join_learn_process" in kwargs:

After Change


        raise Exception("Unable to connect to RPC server")

    def create(self, name):
        return self.proxy.create(name)

    def learn(self, name, from_data, to_predict, datasource_id, kwargs={}):
        return self.proxy.learn(name, from_data, to_predict, datasource_id, kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: mindsdb/mindsdb
Commit Name: af5aeb26d96291562884f17cbfbbd917636bc7b7
Time: 2021-03-15
Author: george@cerebralab.com
File Name: mindsdb/interfaces/model/model_interface.py
Class Name: ModelInterface
Method Name: create


Project Name: mindsdb/mindsdb
Commit Name: af5aeb26d96291562884f17cbfbbd917636bc7b7
Time: 2021-03-15
Author: george@cerebralab.com
File Name: mindsdb/interfaces/model/model_interface.py
Class Name: ModelInterface
Method Name: delete_model


Project Name: mindsdb/mindsdb
Commit Name: af5aeb26d96291562884f17cbfbbd917636bc7b7
Time: 2021-03-15
Author: george@cerebralab.com
File Name: mindsdb/interfaces/model/model_interface.py
Class Name: ModelInterface
Method Name: learn


Project Name: mindsdb/mindsdb
Commit Name: af5aeb26d96291562884f17cbfbbd917636bc7b7
Time: 2021-03-15
Author: george@cerebralab.com
File Name: mindsdb/interfaces/model/model_interface.py
Class Name: ModelInterface
Method Name: predict