[Eeglablist] BCI-Lab question

Alex Abe nabra005 at odu.edu
Fri Aug 12 10:55:17 PDT 2016


Hi,

I am running the search function in BCI_lab, and it is giving me an error
which I am not able to solve. Can any BCI_lab expert help me out ? If I do
not use search, the program compiles without an error and provides an
output.

I am using Matlab 2014a version. I tried running on 2011a and it still
gives me the same error. Do let me know if you need any other info.

My command line that calls the search function is as follows:

myapproach = {'CSP'
'SignalProcessing',{'EpochExtraction',[search(0:0.5:1.0),search(2.0:0.5:3.0)],'FIRFilter',[6
8 29 30]}};


The error I receive is below:



Attempt to reference field of non-structure array.

Error in ParadigmBaseSimplified>@(x)length(x.streams)>1 (line 168)
                if any(cellfun(@(x)length(x.streams) > 1,collection))

Error in ParadigmBaseSimplified/calibrate (line 168)
                if any(cellfun(@(x)length(x.streams) > 1,collection))

Error in bci_train/@(varargin)instance.calibrate(varargin{:})



Error in
bci_train>@(trainset,varargin)utl_complete_model(calibrate_func('collection',{trainset},varargin{:}),predict_func)
(line 704)
        'trainer', @(trainset,varargin)

utl_complete_model(calibrate_func('collection',{trainset},varargin{:}),predict_func),
...

Error in utl_evaluate_fold (line 29)
    model = opts.trainer(trainset,opts.args{:});

Error in par_beginschedule (line 157)
            sched(t) = {{t,tasks{t}{1}(tasks{t}{2:end})}}; end

Error in par_schedule (line 60)
id = par_beginschedule(tasks,opts);

Error in utl_crossval (line 200)
    results = par_schedule(tasks, 'engine',opts.engine_cv,
'pool',opts.pool, 'policy',opts.policy);

Error in
utl_searchmodel>@(varargin)utl_crossval(data,nestedcv_ctrl,'args',varargin)
(line 147)
    objective_function = @(varargin)
utl_crossval(data,nestedcv_ctrl,'args',varargin);

Error in hlp_wrapresults (line 51)
        [a{1:len}] = f(varargin{:});

Error in par_beginschedule (line 157)
            sched(t) = {{t,tasks{t}{1}(tasks{t}{2:end})}}; end

Error in par_schedule (line 60)
id = par_beginschedule(tasks,opts);

Error in utl_gridsearch (line 146)
outputs = par_schedule(tasks,
'engine',opts.engine_gs,'pool',opts.pool,'policy',opts.policy);

Error in utl_searchmodel (line 156)
    [stats.bestidx,stats.inputs,stats.outputs] =
utl_gridsearch(gridsearch_ctrl, opts.args{:});

Error in
utl_nested_crossval>@(P,varargin)utl_searchmodel(P,opts,'scheme',opts.opt_scheme)
(line 98)
    opts.trainer = @(P,varargin)
utl_searchmodel(P,opts,'scheme',opts.opt_scheme);

Error in utl_evaluate_fold (line 29)
    model = opts.trainer(trainset,opts.args{:});

Error in par_beginschedule (line 157)
            sched(t) = {{t,tasks{t}{1}(tasks{t}{2:end})}}; end

Error in par_schedule (line 60)
id = par_beginschedule(tasks,opts);

Error in utl_crossval (line 200)
    results = par_schedule(tasks, 'engine',opts.engine_cv,
'pool',opts.pool, 'policy',opts.policy);

Error in utl_nested_crossval (line 102)
[measure,stats] = utl_crossval(data, opts, 'scheme',opts.eval_scheme);

Error in bci_train>run_computation (line 759)
    [measure,stats] = utl_nested_crossval(opts.data, crossval_args{:});

Error in hlp_scope>make_func/@(f,a,frame__f1)feval(f,a{:})



Error in hlp_scope (line 51)
[varargout{1:nargout}] = func(f,varargin);

Error in bci_train (line 730)
[measure,model,stats] =
hlp_scope({'fingerprint_check',0,'fingerprint_create',0}, at run_computation,opts,crossval_args);



Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160812/689fbdae/attachment.html>


More information about the eeglablist mailing list