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

error running weiss/2014-07-01-r #4

Open
InesSoares opened this issue Apr 4, 2016 · 4 comments
Open

error running weiss/2014-07-01-r #4

InesSoares opened this issue Apr 4, 2016 · 4 comments

Comments

@InesSoares
Copy link

create_experiment
run_experiment
running weiss algorithm with weiss_initial configuration and 0-05 setup file ...
size of evalDays: 1
size of evalDays: 75
size of trainingRange: 1
size of trainingRange: 15
Index exceeds matrix dimensions.

Error in weiss (line 121)
[signatureIDs, dist] = knnsearch(signatures(phases_of_signatures == phase, 1:2),
event_vecs(:,1:2));

Error in nilm_eval (line 68)
result = function_handle(evaluation_and_training_days, setup, fid);

Error in run_experiment (line 32)
nilm_eval([experiment_folder, setup_file]);

@MMahdoud
Copy link

Hi, i have the same problem. Do you have fixed it?

@marinadorokhova
Copy link

I have exactly the same problem. Did someone find a solution?

@InesSoares
Copy link
Author

Hi,
So what I did was change the startup file ("startup.m").
I put inside of the file the following code:

% This file is part of the project NILM-Eval (https://github.com/beckel/nilm-eval).
% Licence: GPL 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
% Copyright: ETH Zurich, 2014
% Author: Romano Cicchetti

warning off MATLAB:dispatcher:nameConflict

addpath(genpath('algorithms'));
addpath(genpath('config'));
addpath(genpath('data_access'));
addpath(genpath('framework'));
% some conflict with 'legend' plotting function :(
% addpath(genpath('lib/bnt'));
addpath(genpath('lib/lightspeed'));
addpath(genpath('lib/proxTV-1.0'));
addpath(genpath('lib/spectralClustering'));
addpath(genpath('lib/TVDIP'));
addpath(genpath('lib/YAMLMatlab_0.4.3'));
addpath(genpath('lib/bnt/BNT'));
addpath(genpath('lib/bnt/graph'));
addpath(genpath('lib/bnt/GraphViz'));
addpath(genpath('lib/bnt/HMM'));
addpath(genpath('lib/bnt/Kalman'));
addpath(genpath('lib/bnt/KPMstats'));
addpath(genpath('lib/bnt/KPMtools'));
addpath(genpath('lib/bnt/nethelp3.3'));
addpath(genpath('lib/bnt/netlab3.3'));
addpath(genpath('lib/bnt/netlabKPM'));

addpath(genpath('plot'));
addpath('projects/');
addpath('projects/buildsys/');
addpath('projects/buildsys/images/');
addpath('projects/buildsys/images/pie_chart/');
addpath(genpath('util'));
addpath('data/');
addpath('experiments/');
addpath('input/');
addpath('lib/');
addpath('material/');
addpath('old/');
addpath('results/');
addpath('tools/');

set(0,'DefaultTextFontname', 'Times New Roman');
set(0,'DefaultTextFontSize', 9);
set(0,'DefaultAxesFontName', 'Times New Roman');
set(0,'DefaultAxesFontSize', 9);

@ThrallZhou
Copy link

I still met the same thing after changed the startup.m how could I solve it?

image

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

4 participants