aecker / moksm Goto Github PK
View Code? Open in Web Editor NEWMixture of Kalman filter model for spike sorting (using split & merge EM)
Mixture of Kalman filter model for spike sorting (using split & merge EM)
On some data sets, the MoKSM fails to make split due to premature component starvation even on data sets with seemingly obvious split candidates. Running following code results in the result shown in the MoKSM GUI below. Attempt to further split the cluster in GUI fails with the same error: Splitting cluster.. aborted due to error: Component starvation: cluster 1. I've tried this under various parameters settings but none of the setting appears to matter.
leo = fetch(acq.Sessions('session_datetime > "2010"','subject_id = 3',acq.Stimulation('exp_type like "ClassD%"')));
sortedSet =fetch(detect.Electrodes(leo) & sort.KalmanAutomatic);
electrode = sortedSet(50); % this is the electrode with particularly problematic result
% !! if you change above number from 50 -> 7, it shows a case where doing a
% manual split in GUI results in cluster with FP of 1282
% number of PCA components to be used
numComponent = 8;
%model = MoKsmInterface(electrodes(ind));
model = MoKsmInterface(electrode);
model = getFeatures(model, 'PCA', numComponent);
% Set up model parameters
params = model.params;
switch(numComponent)
case 3 % this is the same setting as used in tetrodes
params.ClusterCost = 0;
params.Df = 9;
params.CovRidge = 1.5;%%1.5;
params.DriftRate = 300 / 3600 / 1000;
params.DTmu = 100 * 1000;
params.Tolerance = 0.0001;%0.0005;
params.Verbose = true;
end
model.params = params;
fitted = fit(model);
m = ManualClustering(fitted);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.