af5aeb26d96291562884f17cbfbbd917636bc7b7,mindsdb/interfaces/model/model_interface.py,ModelInterface,create,#ModelInterface#Any#,12
Before Change
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: pantsbuild/pants
Commit Name: c40fd43b33cbab0f5b3948ffbb8abcc1d9ce7ee6
Time: 2015-09-08
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/backend/jvm/tasks/bootstrap_jvm_tools.py
Class Name: BootstrapJvmTools
Method Name: shader
Project Name: pantsbuild/pants
Commit Name: ee3498b91f28ceaef9b1ee75e40d9409663c0db8
Time: 2015-07-22
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/codegen/tasks/ragel_gen.py
Class Name: RagelGen
Method Name: ragel_binary