f8b7c9e4db700561e45f2e82b82d7eda14806a1d,mindsdb/interfaces/custom/custom.py,CustomModels,rename_model,#CustomModels#Any#Any#,36
Before Change
self.dbw.unregister_predictor(name)
def rename_model(self, name, new_name):
shutil.move(os.path.join(self.storage_dir, "custom_model_" + name) , os.path.join(self.storage_dir, "custom_model_" + new_name))
def load_model(self, fpath, name):
shutil.unpack_archive(fpath, os.path.join(self.storage_dir, "custom_model_" + name), "zip")
After Change
self.dbw.unregister_predictor(name)
def rename_model(self, name, new_name):
shutil.move(self._dir(name), self._dir(new_name))
def load_model(self, fpath, name):
shutil.unpack_archive(fpath,self._dir(name), "zip")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: mindsdb/mindsdb
Commit Name: f8b7c9e4db700561e45f2e82b82d7eda14806a1d
Time: 2020-09-08
Author: george@cerebralab.com
File Name: mindsdb/interfaces/custom/custom.py
Class Name: CustomModels
Method Name: rename_model
Project Name: mindsdb/mindsdb
Commit Name: f8b7c9e4db700561e45f2e82b82d7eda14806a1d
Time: 2020-09-08
Author: george@cerebralab.com
File Name: mindsdb/interfaces/custom/custom.py
Class Name: CustomModels
Method Name: load_model
Project Name: mindsdb/mindsdb
Commit Name: f8b7c9e4db700561e45f2e82b82d7eda14806a1d
Time: 2020-09-08
Author: george@cerebralab.com
File Name: mindsdb/interfaces/custom/custom.py
Class Name: CustomModels
Method Name: delete_model