15e643731d8d247ee320ae8bca326dd7eb8b9281,mindsdb/libs/backends/ludwig.py,LudwigBackend,predict,#LudwigBackend#Any#Any#,236

Before Change


        model = LudwigModel.load(self.transaction.persistent_model_metadata.ludwig_data["ludwig_save_path"])

        is_timeseries = False
        for deff in model_definition["input_features"]:
            if deff["type"] == "sequence":
                is_timeseries = True

        if is_timeseries:
            predict_dataframe, model_definition =  self._translate_df_to_timeseries_format(predict_dataframe, model_definition)

        for ignore_col in ignore_columns:

After Change


        predict_dataframe, model_definition = self._create_ludwig_dataframe(mode)
        model = LudwigModel.load(self.transaction.persistent_model_metadata.ludwig_data["ludwig_save_path"])

        if self.transaction.persistent_model_metadata.model_order_by is None:
            timeseries_cols = []
        else:
            timeseries_cols = list(map(lambda x: x[0], self.transaction.persistent_model_metadata.model_order_by))

        if len(timeseries_cols) > 0 and model_definition["input_features"][timeseries_cols]["type"] != "sequence":
            predict_dataframe, model_definition =  self._translate_df_to_timeseries_format(predict_dataframe, model_definition, timeseries_cols)

        for ignore_col in ignore_columns:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 27

Instances


Project Name: mindsdb/mindsdb
Commit Name: 15e643731d8d247ee320ae8bca326dd7eb8b9281
Time: 2019-03-26
Author: george@cerebralab.com
File Name: mindsdb/libs/backends/ludwig.py
Class Name: LudwigBackend
Method Name: predict


Project Name: mindsdb/mindsdb
Commit Name: 0feacd057349b07a38e78722af9cce2fb9f27196
Time: 2019-03-23
Author: george@cerebralab.com
File Name: mindsdb/libs/backends/ludwig.py
Class Name: LudwigBackend
Method Name: predict


Project Name: mindsdb/mindsdb
Commit Name: 15e643731d8d247ee320ae8bca326dd7eb8b9281
Time: 2019-03-26
Author: george@cerebralab.com
File Name: mindsdb/libs/backends/ludwig.py
Class Name: LudwigBackend
Method Name: predict


Project Name: mindsdb/mindsdb
Commit Name: 0feacd057349b07a38e78722af9cce2fb9f27196
Time: 2019-03-23
Author: george@cerebralab.com
File Name: mindsdb/libs/backends/ludwig.py
Class Name: LudwigBackend
Method Name: train