Skip to content

Commit

Permalink
Bugfix demo_benchmarking (missing spike weights)
Browse files Browse the repository at this point in the history
This demo script was missing the spike weights. This does not
significantly affect the runtimes, but it does have a large impact
on the quality of fit on the subsetted data.
  • Loading branch information
kqshan committed Apr 24, 2017
1 parent 36e3085 commit 226f6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo_benchmarking.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@
end
% Try a dry run first
modt.setParams(starting_params);
modt.attachData(spk_Y, spk_t);
modt.attachData(spk_Y, spk_t, spk_w);
modt.EM('maxIter',3);
modt.detachData();
% Do it for real
fprintf('Running %s\n', modt_desc{ii});
t_start = tic();
modt.setParams(starting_params);
modt.attachData(spk_Y, spk_t);
modt.attachData(spk_Y, spk_t, spk_w);
modt.EM('minIter',nIter, 'maxIter',nIter);
t_elapsed = toc(t_start);
% If this was a subset, then measure the log-likelihood on the full dataset
Expand Down

0 comments on commit 226f6c5

Please sign in to comment.