-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSpatiallySparseDatasetCVAP_RHA.cpp
More file actions
55 lines (53 loc) · 1.35 KB
/
SpatiallySparseDatasetCVAP_RHA.cpp
File metadata and controls
55 lines (53 loc) · 1.35 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// http://www.nada.kth.se/cvap/actions/
#include "SpatiallySparseDatasetCVAP_RHA.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include "CVAP_RHA_Picture.h"
SpatiallySparseDataset CVAP_RHA_TrainSet() {
SpatiallySparseDataset dataset;
dataset.name = "CVAP-RHA Trainset";
dataset.type = TRAINBATCH;
dataset.nFeatures = 1;
dataset.nClasses = 6;
std::ifstream d("Data/CVAP_RHA/train.dataset");
assert(d);
while (!d.eof()) {
try {
dataset.pictures.push_back(new CVAP_RHA_Picture(d));
} catch (int e) {
}
}
return dataset;
};
SpatiallySparseDataset CVAP_RHA_ValidationSet() {
SpatiallySparseDataset dataset;
dataset.name = "CVAP-RHA Validationset";
dataset.type = TESTBATCH;
dataset.nFeatures = 1;
dataset.nClasses = 6;
std::ifstream d("Data/CVAP_RHA/validation.dataset");
while (!d.eof()) {
try {
dataset.pictures.push_back(new CVAP_RHA_Picture(d));
} catch (int e) {
}
}
return dataset;
};
SpatiallySparseDataset CVAP_RHA_TestSet() {
SpatiallySparseDataset dataset;
dataset.name = "CVAP-RHA Testset";
dataset.type = TESTBATCH;
dataset.nFeatures = 1;
dataset.nClasses = 6;
std::ifstream d("Data/CVAP_RHA/test.dataset");
while (!d.eof()) {
try {
dataset.pictures.push_back(new CVAP_RHA_Picture(d));
} catch (int e) {
}
}
return dataset;
};