Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AFHMM implementation Error #76

Open
NetsanetTsegaye opened this issue Jan 29, 2023 · 0 comments
Open

AFHMM implementation Error #76

NetsanetTsegaye opened this issue Jan 29, 2023 · 0 comments

Comments

@NetsanetTsegaye
Copy link

I was implementing AFHMM algorithm in REDD dataset using nilmtk-contrib but am stack since the algorithm is showing the following error: "Index 2 is out of bounds for axis 0 with size 2." For the line of code in the disaggregate thread of Afhmm algorithm : for t in range(len(test_mains)):
term_4+= .5 * ((test_mains[t][0] - total_observed_reading[t][0])*2 / (sigma[t]*2))
term_3+= .5 * (np.log(sigma[t]**2))
expression = term_1 + term_2 + term_3 + term_4
expression = cvx.Minimize(expression)
prob = cvx.Problem(expression, constraints,)
prob.solve(solver=cvx.SCS,verbose=False,warm_start=True)
s_ = [i.value for i in cvx_state_vectors] Can anyone help how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant