Пример #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
    import logging

    mdb = MindsDB()
    ret = mdb.predict(predict='position',
                      when={'max_time_rec': 700},
                      model_name='mdsb_model')
    logging.info(ret)
Пример #3
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)
Пример #4
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)