GithubHelp home page GithubHelp logo

loneharoon / gsp_energy_disaggregator Goto Github PK

View Code? Open in Web Editor NEW
26.0 2.0 19.0 129 KB

This contains the energy disaggregation code based on Graph Signal Processing approach

Home Page: https://ieeexplore.ieee.org/document/7457610/

Python 100.00%
energy-disaggregation energy-data energy-consumption

gsp_energy_disaggregator's People

Contributors

aleonnet avatar andrerenaud avatar loneharoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gsp_energy_disaggregator's Issues

Ufunc 'isnan' not supported for the input types

Hi,

I have a problem with compiling using Python 3.7 on PyCharm 2018.3.4 x64.
Compiling stop at step 3 of 6> generates full power series of appliances and display following error:
File "C:/Users/hacke/PycharmProjects/GSP_Disagregator/gsp_disaggregator.py", line 72, in <module> power_series, appliance_signatures = gsp.generate_appliance_powerseries(appliance_pairs, delta_p) File "C:\Users\hacke\PycharmProjects\GSP_Disagregator\gsp_support.py", line 194, in generate_appliance_powerseries powerval = interpolate_values(final) if sum(np.isnan(final)) else final TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Thanks for response

Execution with public datasets

Hello,

I am trying to get the disaggregation results with REFIT and REDD files, as the authors did on the article. You have output_disaggr.csv and signature_database_labelled.csv, which are two labelled disaggregated files, and REDD and REFIT data have aggregated files and dissaggregated files which are equivalent to output_disaggr.csv (ground truth). How can I generate/obtain the equivalen signature_database_labelled.csv to REDD and REFIT data?

Big difference between the actual power data & dis-aggregated power data

gsp_result

I have plotted the sum of the dis-aggregated 15 loads obtained in gsp_result data frame. The actual aggregated data is also plotted to compare the results with the actual data. There appears to be a big difference between the actual aggregate power and the result obtained using your code. Can you verify?

ValueError: All arrays must be of the same length

File "gsp_disaggregator.py", line 71, in
power_series, appliance_signatures = gsp.generate_appliance_powerseries(appliance_pairs, delta_p)
File "/home/qzx/nilm/gsp_support.py", line 210, in generate_appliance_powerseries
power_series[i] = pd.DataFrame({'timestamp':timeseq,'power':powerseq})
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 709, in init
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 481, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 115, in arrays_to_mgr
index = _extract_index(arrays)
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 655, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length

There is no demo data

Hi @loneharoon,
I'd like to give your implementation a try, but there is not demo data file.

csvfile = "./demo_data.csv"
Would you include this file pls?

Thank you.
Best,

TypeError of DWT and fastDWT: unsupported operand type(s) for -: 'function' and 'int'

Hi,

I am new in this area and thank you so much to upload the python code of GSP based NILM! And I really want to have a successful run of your code!

However I have some problem when running the code with the function DWT and fastDWT
" dist = (s1[i] - s2[j]) ** 2
TypeError: unsupported operand type(s) for -: 'function' and 'int'". Could you please help me with that?

error while running the code

I got the following error while i would like to run the code as it is.

also help me in implementing the same algorithm to the public available datasets like REDD,UKDALE

1 of 6> reading data
Traceback (most recent call last):
File "gsp_disaggregator.py", line 62, in
event = [i for i in range(0, len(delta_p)) if (delta_p[i] > T_Positive or delta_p[i] < T_Negative) ]
File "gsp_disaggregator.py", line 62, in
event = [i for i in range(0, len(delta_p)) if (delta_p[i] > T_Positive or delta_p[i] < T_Negative) ]
TypeError: '>' not supported between instances of 'tuple' and 'int'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.