ec692dd05db0c0374c5a3720fab05eca45fee9e9,mindsdb/libs/phases/data_extractor/data_extractor.py,,test,#,303

Before Change


    mdb = MindsDB()

    // We tell mindsDB what we want to learn and from what data
    mdb.learn(
        from_data="https://raw.githubusercontent.com/mindsdb/mindsdb/master/docs/examples/basic/home_rentals.csv",
        // the path to the file where we can learn from, (note: can be url)
        columns_to_predict="rental_price",  // the column we want to learn to predict given all the data in the file
        model_name="home_rentals",  // the name of this model
        breakpoint = PHASE_DATA_EXTRACTION,
        sample_margin_of_error=0.02
    )



// only run the test if this file is called from debugger

After Change


    // )


    mdb.predict(when={"number_of_rooms":10})



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

Frequency: 3

Non-data size: 3

Instances


Project Name: mindsdb/mindsdb
Commit Name: ec692dd05db0c0374c5a3720fab05eca45fee9e9
Time: 2019-02-17
Author: jorge.torres.maldonado@gmail.com
File Name: mindsdb/libs/phases/data_extractor/data_extractor.py
Class Name:
Method Name: test


Project Name: mindsdb/mindsdb
Commit Name: eff2340569072e4ca065a0e14a214d285ef53055
Time: 2019-10-30
Author: george@cerebralab.com
File Name: test.py
Class Name:
Method Name:


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