86e5a246bdeef14d40f40f2f6689fd67125a7cf4,mindsdb/interfaces/native/native.py,NativeInterface,get_model_data,#NativeInterface#,93

Before Change


        return F.analyse_dataset(ds)

    def get_model_data(self, name, db_fix=True):
        predictor_record = Predictor.query.filter_by(company_id=self.company_id, name=name)
        model = predictor_record.data

        // Make some corrections for databases not to break when dealing with empty columns
        if db_fix:

After Change


        return F.analyse_dataset(ds)

    def get_model_data(self, name, db_fix=True):
        predictor_record = Predictor.query.filter_by(company_id=self.company_id, name=name).first()
        model = predictor_record.data
        if model is None or model["status"] == "training":
            self.fs_store.get(name, f"predictor_{self.company_id}_{name}", self.config["paths"]["predictors"])
            model = mindsdb_native.F.get_model_data(name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

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/native.py
Class Name: NativeInterface
Method Name: get_model_data


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: 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/learn_process.py
Class Name: LearnProcess
Method Name: run