Пример #1
0
def test():
    from mindsdb.libs.controllers.mindsdb_controller import MindsDBController as MindsDB

    mdb = MindsDB()
    mdb.learn(from_query='select * from position_tgt',
              predict='position',
              model_name='mdsb_model',
              test_query=None,
              breakpoint=PHASE_DATA_STATS)
Пример #2
0
def test():
    from mindsdb.libs.controllers.mindsdb_controller import MindsDBController as MindsDB

    mdb = MindsDB()
    mdb.learn(from_query='select * from position_target_table',
              group_by='id',
              order_by=['max_time_rec'],
              predict='position',
              model_name='mdsb_model',
              breakpoint=PHASE_DATA_VECTORIZATION)
Пример #3
0
def test():
    from mindsdb.libs.controllers.mindsdb_controller import MindsDBController as MindsDB

    mdb = MindsDB()
    mdb.learn(from_query='''
            select 
                id,
                max_time_rec,
                min_time_rec,
                
                position 
            from position_target_table
        ''',
              from_file=CONFIG.MINDSDB_STORAGE_PATH +
              '/position_target_table.csv',
              group_by='id',
              order_by=['max_time_rec'],
              predict='position',
              model_name='mdsb_model',
              breakpoint=PHASE_MODEL_TRAINER)