feature_extractor/plugins/input/vis_sqlite.py
def load_data(self, p_config, process_id):
        """load the data for the mse plot for the last training process, also the last validation plot and a list of validation stats."""
        p_config = current_app.config['P_CONFIG']
        db = get_db()
        self.input_ds = []
        for table in p_config['input_plugin_config']['tables']:
            c = 0
            fields = ""
            for f in table['fields']:
                if c > 0:
                    fields = fields + ","
                fields = fields + f
                c = c + 1
            query = db.execute(
                "SELECT " + fields +
                " FROM " + table['table_name'] +
                " t JOIN process p ON t.process_id = " + str(process_id) +
                " ORDER BY created DESC"
            ).fetchall()
            self.input_ds.append(query)
        return self.input_ds
load the data for the mse plot for the last training process, also the last validation plot and a list of validation stats.
load the data for the mse plot for the last training process, also the last validation plot and a list of validation stats.
load the data for the mse plot for the last training process also the last validation plot and a list of validation stats .
def load_data(self, p_config, process_id):
        p_config = current_app.config['P_CONFIG']
        db = get_db()
        self.input_ds = []
        for table in p_config['input_plugin_config']['tables']:
            c = 0
            fields = ""
            for f in table['fields']:
                if c > 0:
                    fields = fields + ","
                fields = fields + f
                c = c + 1
            query = db.execute(
                "SELECT " + fields +
                " FROM " + table['table_name'] +
                " t JOIN process p ON t.process_id = " + str(process_id) +
                " ORDER BY created DESC"
            ).fetchall()
            self.input_ds.append(query)
        return self.input_ds
def load_data ( self , p_config , process_id ) : p_config = current_app . config [ 'P_CONFIG' ] db = get_db ( ) self . input_ds = [ ] for table in p_config [ 'input_plugin_config' ] [ 'tables' ] : c = 0 fields = "" for f in table [ 'fields' ] : if c > 0 : fields = fields + "," fields = fields + f c = c + 1 query = db . execute ( "SELECT " + fields + " FROM " + table [ 'table_name' ] + " t JOIN process p ON t.process_id = " + str ( process_id ) + " ORDER BY created DESC" ) . fetchall ( ) self . input_ds . append ( query ) return self . input_ds
load the data for the mse plot for the last training process, also the last validation plot and a list of validation stats.
load the data for the mse plot for the last training process also the last validation plot and a list of validation stats .
"""load the data for the mse plot for the last training process, also the last validation plot and a list of validation stats."""
self
p_config
process_id