dc9534018b52d741446e8ccc5bf15fcc6d3d75c9,nilmtk/dataset/hes.py,HES,load,#HES#,77

Before Change


            
            houses_in_chunk = chunk["house id"].unique()
            for house_id in houses_in_chunk:
                building = self.buildings[house_id]
                electric = building.utility.electric
                for appliance_code in appliances_in_house_chunk:
                    pass
                // TODO

After Change


            chunk["datetime"] = dt.apply(datetime_converter)
            
            // Data is either tenths of a Wh or tenths of a degree
            chunk["data"] *= 10
            chunk["data"] = chunk["data"].astype(np.float32)

            // Process each house in chunk
            houses_in_chunk = chunk["house id"].unique() //TODO: use groupby?!?
            for house_id in houses_in_chunk:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: nilmtk/nilmtk
Commit Name: dc9534018b52d741446e8ccc5bf15fcc6d3d75c9
Time: 2014-01-14
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset/hes.py
Class Name: HES
Method Name: load


Project Name: jakeret/tf_unet
Commit Name: 71a7b91abfd37da9a024e4106fbde8646b524ad7
Time: 2016-08-19
Author: jakeret@phys.ethz.ch
File Name: scripts/radio_util.py
Class Name: Generator
Method Name: _read_chunck


Project Name: mseitzer/pytorch-fid
Commit Name: 8cab14aa67b78402bb395546ca66e2b927cac222
Time: 2019-01-31
Author: maya6282@gmail.com
File Name: fid_score.py
Class Name:
Method Name: get_activations