f20d62843c280765b984d3cc77f1eb7f61d58c4f,mltsp/build_model.py,,create_and_pickle_model,#,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...")
After Change
// Fit the model to training data:
print("Fitting the model...")
rf_fit.fit(data_dict["features"], data_dict["classes"])
print("Done.")
del data_dict
// Store the model:
print("Pickling model...")
In pattern: SUPERPATTERN
Frequency: 3
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: nilmtk/nilmtk
Commit Name: 53bfa2b17feae6362f22fe42a91e81fb1bc7d01f
Time: 2014-12-18
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: correlation_of_sum_of_submeters_with_mains
Project Name: nilmtk/nilmtk
Commit Name: 63ef8bfa3b63090437bd27bf1e04db7ae1eae3cf
Time: 2014-11-27
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/totalenergy.py
Class Name:
Method Name: get_total_energy