c540cae55aa1c43887ba120cf52c8a9d3a865d5e,libs/phases/data_vectorizer/data_vectorizer.py,,test,#,137

Before Change



def test():
    from libs.test.test_controller import TestController
    module = TestController("CREATE MODEL FROM (SELECT * FROM Uploads.views.tweets2) AS tweets2 PREDICT retweet_count ", PHASE_DATA_VECTORIZATION)
    return

// only run the test if this file is called from debugger
if __name__ == "__main__":

After Change


def test():
    from libs.controllers.mindsdb_controller import MindsDBController as MindsDB

    mdb = MindsDB()
    mdb.learn(
        from_query="select * from position_tgt",
        group_by="id",
        order_by=["max_time_rec"],
        predict="position",
        model_name="mdsb_model",
        breakpoint=PHASE_DATA_VECTORIZATION
    )



// only run the test if this file is called from debugger
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mindsdb/mindsdb
Commit Name: c540cae55aa1c43887ba120cf52c8a9d3a865d5e
Time: 2018-08-27
Author: jorgetorres@Jorges-MacBook-Pro.local
File Name: libs/phases/data_vectorizer/data_vectorizer.py
Class Name:
Method Name: test


Project Name: mindsdb/mindsdb
Commit Name: 3629e4a6b60ee3486f550b30a1edf0d0b1fafc93
Time: 2018-09-04
Author: jorge.torres.maldonado@gmail.com
File Name: libs/phases/model_predictor/model_predictor.py
Class Name:
Method Name: test


Project Name: mindsdb/mindsdb
Commit Name: 5f34c2458578446506d35540f523031bb728ae74
Time: 2018-08-23
Author: jorgetorres@Jorges-MacBook-Pro.local
File Name: libs/phases/data_extractor/data_extractor.py
Class Name:
Method Name: test