f20d62843c280765b984d3cc77f1eb7f61d58c4f,mltsp/build_model.py,,create_and_pickle_model,#Any#Any#Any#Any#,187

Before Change


    // Fit the model
    rf_fit_pkl = fit_model.delay(data_dict)
    rf_fit_pkl = rf_fit_pkl.get(timeout=20)
    rf_fit = pickle.loads(rf_fit_pkl)

    // Store the model:
    print("Pickling model...")
    foutname = os.path.join(

After Change


    ntrees = 1000
    njobs = -1
    rf_fit = RFC(n_estimators=ntrees, max_features="auto", n_jobs=njobs)
    print("Model initialized.")

    // Fit the model to training data:
    print("Fitting the model...")
    rf_fit.fit(data_dict["features"], data_dict["classes"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: f20d62843c280765b984d3cc77f1eb7f61d58c4f
Time: 2015-09-15
Author: a.crellinquick@gmail.com
File Name: mltsp/build_model.py
Class Name:
Method Name: create_and_pickle_model


Project Name: stanfordnmbl/osim-rl
Commit Name: 22689227ac7f3300c66bff890331132b4444acc6
Time: 2019-06-03
Author: spmohanty91@gmail.com
File Name: osim/redis/service.py
Class Name: OsimRlRedisService
Method Name: run


Project Name: commonsense/conceptnet5
Commit Name: db4b9f4d50af9e83733fc301c32e85cbe6d9c812
Time: 2014-02-25
Author: rob@luminoso.com
File Name: conceptnet5/builders/json_to_solr.py
Class Name:
Method Name: convert_to_solr


Project Name: NervanaSystems/nlp-architect
Commit Name: 24d3656c6c4b3c6806954487720d53af775a1150
Time: 2018-06-07
Author: shira.guskin@intel.com
File Name: set_expansion_demo/ui/main.py
Class Name:
Method Name: get_expand_results_callback


Project Name: OpenMined/Grid
Commit Name: 45b7a00a7b05fd5afcb597278effacfe21dedb8a
Time: 2018-02-04
Author: liamtrask@gmail.com
File Name: grid/grid.py
Class Name: Grid
Method Name: fit_worker