86e5a246bdeef14d40f40f2f6689fd67125a7cf4,mindsdb/interfaces/native/learn_process.py,LearnProcess,run,#LearnProcess#,18
Before Change
model_data = mindsdb_native.F.get_model_data(name)
predictor_record = Predictor.query.filter_by(company_id=company_id, name=name)
predictor_record.data = model_data
session.commit()
DatabaseWrapper().register_predictors([model_data])
After Change
model_data = mindsdb_native.F.get_model_data(name)
predictor_record = Predictor.query.filter_by(company_id=company_id, name=name).first()
predictor_record.data = model_data
session.commit()
DatabaseWrapper().register_predictors([model_data])
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: mindsdb/mindsdb
Commit Name: 86e5a246bdeef14d40f40f2f6689fd67125a7cf4
Time: 2021-02-10
Author: george@cerebralab.com
File Name: mindsdb/interfaces/native/learn_process.py
Class Name: LearnProcess
Method Name: run
Project Name: mindsdb/mindsdb
Commit Name: 86e5a246bdeef14d40f40f2f6689fd67125a7cf4
Time: 2021-02-10
Author: george@cerebralab.com
File Name: mindsdb/interfaces/native/native.py
Class Name: NativeInterface
Method Name: create
Project Name: mindsdb/mindsdb
Commit Name: a427bbca359431db96701b3f676be3ca8004e162
Time: 2021-02-10
Author: george@cerebralab.com
File Name: mindsdb/interfaces/native/learn_process.py
Class Name: LearnProcess
Method Name: run
Project Name: mindsdb/mindsdb
Commit Name: 86e5a246bdeef14d40f40f2f6689fd67125a7cf4
Time: 2021-02-10
Author: george@cerebralab.com
File Name: mindsdb/interfaces/native/native.py
Class Name: NativeInterface
Method Name: predict
Project Name: mindsdb/mindsdb
Commit Name: 36709b70bc52d15f1229362af02e263d6bdc2ca0
Time: 2021-02-11
Author: george@cerebralab.com
File Name: mindsdb/interfaces/native/native.py
Class Name: NativeInterface
Method Name: delete_model
Project Name: mindsdb/mindsdb
Commit Name: 86e5a246bdeef14d40f40f2f6689fd67125a7cf4
Time: 2021-02-10
Author: george@cerebralab.com
File Name: mindsdb/interfaces/native/native.py
Class Name: NativeInterface
Method Name: get_model_data