Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sliang11 authored Jul 18, 2019
1 parent ea5a460 commit 1d4c502
Show file tree
Hide file tree
Showing 9 changed files with 2,672 additions and 0 deletions.
60 changes: 60 additions & 0 deletions sample_data/Car/Car_TEST

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions sample_data/Car/Car_TRAIN

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions sample_data/Car/seeds_Car.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
17 42
17 21
17 43
11 42
17 51
4 55
4 42
11 27
1 27
37 55
85 changes: 85 additions & 0 deletions sample_data/InfoAll
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
synthetic_control 6 300 300 60 0.12 0.017 6 0.007
Gun_Point 2 50 150 150 0.087 0.087 0 0.093
CBF 3 30 900 128 0.148 0.004 11 0.003
FaceAll 14 560 1690 131 0.286 0.192 3 0.192
OSULeaf 6 200 242 427 0.479 0.388 7 0.409
SwedishLeaf 15 500 625 128 0.211 0.154 2 0.208
50words 50 450 455 270 0.369 0.242 6 0.31
Trace 4 100 100 275 0.24 0.01 3 0
Two_Patterns 4 1000 4000 128 0.09 0.002 4 0
wafer 2 1000 6174 152 0.005 0.005 1 0.02
FaceFour 4 24 88 350 0.216 0.114 2 0.17
Lighting2 2 60 61 637 0.246 0.131 6 0.131
Lighting7 7 70 73 319 0.425 0.288 5 0.274
ECG200 2 100 100 96 0.12 0.12 0 0.23
Adiac 37 390 391 176 0.389 0.391 3 0.396
yoga 2 300 3000 426 0.17 0.155 2 0.164
FISH 7 175 175 463 0.217 0.154 4 0.177
Plane 7 105 105 144 0.038 0 6 0
Car 4 60 60 577 0.267 0.233 1 0.267
Beef 5 30 30 470 0.333 0.333 0 0.367
Coffee 2 28 28 286 0 0 0 0
OliveOil 4 30 30 570 0.133 0.133 0 0.167
CinC_ECG_torso 4 40 1380 1639 0.103 0.07 1 0.349
ChlorineConcentration 3 467 3840 166 0.35 0.35 0 0.352
DiatomSizeReduction 4 16 306 345 0.065 0.065 0 0.033
ECGFiveDays 2 23 861 136 0.203 0.203 0 0.232
FacesUCR 14 200 2050 131 0.231 0.088 12 0.095
Haptics 5 155 308 1092 0.63 0.588 2 0.623
InlineSkate 7 100 550 1882 0.658 0.613 14 0.616
ItalyPowerDemand 2 67 1029 24 0.045 0.045 0 0.05
MALLAT 8 55 2345 1024 0.086 0.086 0 0.066
MedicalImages 10 381 760 99 0.316 0.253 20 0.263
MoteStrain 2 20 1252 84 0.121 0.134 1 0.165
SonyAIBORobotSurfaceII 2 27 953 65 0.141 0.141 0 0.169
SonyAIBORobotSurface 2 20 601 70 0.305 0.305 0 0.275
StarLightCurves 3 1000 8236 1024 0.151 0.095 16 0.093
Symbols 6 25 995 398 0.1 0.062 8 0.05
TwoLeadECG 2 23 1139 82 0.253 0.132 5 0.096
Cricket_X 12 390 390 300 0.423 0.228 10 0.246
Cricket_Y 12 390 390 300 0.433 0.238 17 0.256
Cricket_Z 12 390 390 300 0.413 0.254 5 0.246
uWaveGestureLibrary_X 8 896 3582 315 0.261 0.227 4 0.273
uWaveGestureLibrary_Y 8 896 3582 315 0.338 0.301 4 0.366
uWaveGestureLibrary_Z 8 896 3582 315 0.35 0.322 6 0.342
NonInvasiveFatalECG_Thorax1 42 1800 1965 750 0.171 0.185 1 0.209
NonInvasiveFatalECG_Thorax2 42 1800 1965 750 0.12 0.129 1 0.135
InsectWingbeatSound 11 220 1980 256 0.438 0.422 2 0.645
ECG5000 5 500 4500 140 0.075 0.075 1 0.076
ArrowHead 3 36 175 251 0.2 0.2 0 0.297
BeetleFly 2 20 20 512 0.25 0.3 7 0.3
BirdChicken 2 20 20 512 0.45 0.3 6 0.25
Ham 2 109 105 431 0.4 0.4 0 0.533
Herring 2 64 64 512 0.484 0.469 5 0.469
PhalangesOutlinesCorrect 2 1800 858 80 0.239 0.239 0 0.272
ProximalPhalanxOutlineAgeGroup 3 400 205 80 0.215 0.215 0 0.195
ProximalPhalanxOutlineCorrect 2 600 291 80 0.192 0.21 1 0.216
ProximalPhalanxTW 6 205 400 80 0.292 0.263 6 0.263
ToeSegmentation1 2 40 228 277 0.32 0.25 8 0.228
ToeSegmentation2 2 36 130 343 0.192 0.092 5 0.162
DistalPhalanxOutlineAgeGroup 3 139 400 80 0.218 0.228 1 0.208
DistalPhalanxOutlineCorrect 2 276 600 80 0.248 0.232 2 0.232
DistalPhalanxTW 6 139 400 80 0.273 0.272 0 0.29
Earthquakes 2 139 322 512 0.326 0.258 22 0.258
MiddlePhalanxOutlineAgeGroup 3 154 400 80 0.26 0.253 5 0.25
MiddlePhalanxOutlineCorrect 2 291 600 80 0.247 0.318 1 0.352
MiddlePhalanxTW 6 154 399 80 0.439 0.419 2 0.416
ShapeletSim 2 20 180 500 0.461 0.3 3 0.35
Wine 2 57 54 234 0.389 0.389 0 0.426
WordsSynonyms 25 267 638 270 0.382 0.252 8 0.351
Computers 2 250 250 720 0.424 0.38 13 0.3
ElectricDevices 7 8926 7711 96 0.45 0.376 14 0.399
FordA 2 1320 3601 500 0.341 0.341 0 0.438
FordB 2 810 3636 500 0.442 0.414 1 0.406
HandOutlines 2 370 1000 2709 0.199 0.197 1 0.202
LargeKitchenAppliances 3 375 375 720 0.507 0.205 94 0.205
Meat 3 60 60 448 0.067 0.067 0 0.067
Phoneme 39 214 1896 1024 0.891 0.773 14 0.772
RefrigerationDevices 3 375 375 720 0.605 0.56 8 0.536
ScreenType 3 375 375 720 0.64 0.589 17 0.603
ShapesAll 60 600 600 512 0.248 0.198 4 0.232
SmallKitchenAppliances 3 375 375 720 0.659 0.328 15 0.357
Strawberry 2 370 613 235 0.062 0.062 0 0.06
UWaveGestureLibraryAll 8 896 3582 945 0.052 0.034 4 0.108
Worms 5 77 181 900 0.635 0.586 3 0.536
WormsTwoClass 2 77 181 900 0.414 0.414 9 0.337
2,345 changes: 2,345 additions & 0 deletions sample_data/MALLAT/MALLAT_TEST

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions sample_data/MALLAT/MALLAT_TRAIN

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions sample_data/MALLAT/seeds_MALLAT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
35
37
28
41
53
25
38 changes: 38 additions & 0 deletions sample_data/generateSeeds.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
%Generate initial positive labeled examples
function seeds = generateSeeds(dataset, numSeeds, path)
%dataset: e.g. 'MALLAT'
%numSeeds: number of seeds to generate, default 10
%path: dataset path

if ~exist('numSeeds', 'var')
numSeeds = 10;
end

if(~exist('path', 'var'));
path = dataset;
end


[~, labels] = importTimeSeries(dataset, 'TRAIN', path);
pInds = (find(labels == 1))';
numP = length(pInds);

numLabeled = max(round(numP * 0.1), 1);
seeds = zeros(numSeeds, numLabeled);
for i = 1 : numSeeds
seed = pInds(sort(random('unid', numP, 1, numLabeled)));
while(ismember(seed, seeds, 'rows') || length(unique(seed)) < numLabeled)
seed = pInds(sort(random('unid', numP, 1, numLabeled)));
end
seeds(i, :) = seed;
end

fName = fullfile(path, ['seeds_', dataset, '.txt']);
fid = fopen(fName, 'w');
for i = 1 : numSeeds
for j = 1 : numLabeled
fprintf(fid, '%d ', seeds(i, j));
end
fprintf(fid, '\n');
end
fclose(fid);
13 changes: 13 additions & 0 deletions sample_data/importTimeSeries.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function [tss, labels] = importTimeSeries(dataset, sfx, path)
%dataset: e.g. 'MALLAT'
%sfx: 'TRAIN' or 'TEST'
%path: the dataset path

if(~exist('path', 'var'));
path = dataset;
end

fileName = fullfile(path, [dataset, '_', sfx]);
tss = importdata(fileName);
labels = tss(:, 1);
tss = tss(:, 2 : end);

0 comments on commit 1d4c502

Please sign in to comment.