beckel / nilm-eval

NILM-EVAL: An evaluation framework for non-intrusive load monitoring algorithms
GNU General Public License v2.0
110 stars 50 forks source link

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

Open InesSoares opened 8 years ago

InesSoares commented 8 years ago

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 commented 7 years ago

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

marinadorokhova commented 6 years ago

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

InesSoares commented 6 years ago

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 commented 6 years ago

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

image