1f32f952d84f0d44fcfe03367d3834d2464b63a0,nilmtk/disaggregate/combinatorial_optimisation.py,CombinatorialOptimisation,import_model,#CombinatorialOptimisation#Any#,256
Before Change
return appliance_powers
def import_model(self, filename):
imported_model = pickle.load(open(filename, "r"))
self.model = imported_model.model
// recreate datastores from filenames
for pair in self.model:
pair["training_metadata"].store = HDFDataStore(
After Change
return appliance_powers
def import_model(self, filename):
with open(filename, "rb") as in_file:
imported_model = pickle.load(in_file)
self.model = imported_model.model
// Recreate datastores from filenames
for pair in self.model:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: nilmtk/nilmtk
Commit Name: 1f32f952d84f0d44fcfe03367d3834d2464b63a0
Time: 2018-04-22
Author: 10246101+PMeira@users.noreply.github.com
File Name: nilmtk/disaggregate/combinatorial_optimisation.py
Class Name: CombinatorialOptimisation
Method Name: import_model
Project Name: Netflix/vmaf
Commit Name: 53075273379791c2ed315688978fcb45e8179980
Time: 2016-02-25
Author: zli@netflix.com
File Name: python/train_test_model.py
Class Name: TrainTestModel
Method Name: from_file
Project Name: undertheseanlp/underthesea
Commit Name: 86c12a45517449229954229425a91190ecb3a9be
Time: 2017-08-24
Author: brother.rain.1024@gmail.com
File Name: underthesea/dictionary/__init__.py
Class Name: Dictionary
Method Name: __init__