-
Notifications
You must be signed in to change notification settings - Fork 4
/
fly_individual_class.m
26 lines (23 loc) · 1 KB
/
fly_individual_class.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%-------------------------------------------------------------------------------
% Ability to distinguish individuals:
%-------------------------------------------------------------------------------
theFile = 'HCTSA.mat';
load(theFile,'TimeSeries');
[expID,recordingSegment] = getExperimentID(TimeSeries);
theGroupsCell = arrayfun(@(x)x,expID,'UniformOutput',false);
groupNames = unique(expID);
groupNames = arrayfun(@(x)num2str(x),groupNames,'UniformOutput',false);
LabelBy(theGroupsCell,groupNames,TimeSeries,theFile);
normalizedFileName = TS_Normalize('scaledRobustSigmoid',[0.5,1]);
% Not so much in the PCA
% TS_PlotLowDim;
TS_Classify(normalizedFileName)
TS_Normalize('none',[0.5,1],[],true);
TS_TopFeatures('norm','ustat','numFeaturesDistr',40)
featID = 3789;
TS_SingleFeature('norm',featID);
%-------------------------------------------------------------------------------
% Plot 3 time series from each class
plotOptions = struct();
plotOptions.howToFilter = 'rand';
TS_PlotTimeSeries('norm',3,[],[],plotOptions)