7895f5165378bc37f14ab02e05614d015473155b,scripts/plots_for_e_energy_2014/top_k_appliances_comparison.py,,,#,31

Before Change


building = dataset.buildings[1]
electric = building.utility.electric
top_k = top_k_appliances(electric, k=5)
fracs = (top_k.values * 100).tolist()
labels = pretty_name_appliance_names(top_k.index.tolist())
ax = axes[count]
ax.pie(fracs,  labels=labels,
       autopct="%1.1f%%", shadow=True, startangle=90)

After Change


    electric = electric.sum_split_supplies()
    top_k = top_k_appliances(electric, k=5)
    fracs = (top_k.values * 100).tolist()
    fracs.append(100.0 - sum(fracs))
    labels = pretty_name_appliance_names(top_k.index.tolist())
    labels.append("Others")
    explode = (0.03, 0.03, 0.03, 0.03, 0.03, 0.03)
    ax = axes[count]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilmtk/nilmtk
Commit Name: 7895f5165378bc37f14ab02e05614d015473155b
Time: 2014-01-14
Author: nipunreddevil@gmail.com
File Name: scripts/plots_for_e_energy_2014/top_k_appliances_comparison.py
Class Name:
Method Name:


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 1a89404a84393211c7b370077fafe536a8f44762
Time: 2018-03-02
Author: max.lapan@gmail.com
File Name: ch17/lib/common.py
Class Name:
Method Name: iterate_batches


Project Name: logpai/loglizer
Commit Name: 64e2c49007ccbd1df92a16d43c4943cee5f0147f
Time: 2019-03-05
Author: zhujm.home@gmail.com
File Name: loglizer/models/LogClustering.py
Class Name: LogClustering
Method Name: _extract_representatives