antitheft159 commited on
Commit
2e280c1
·
verified ·
1 Parent(s): 20b6b2a

Create vehicle data storage

Browse files
Files changed (1) hide show
  1. vehicle data storage +12 -0
vehicle data storage ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ rng(0)
2
+ shuffledIndices = randperm(height(vehicleDataset));
3
+ idx = floor(0.6 * height(vehicleDataset));
4
+
5
+ trainingIdx = 1:idx;
6
+ trainingDataTbl = vehicleDataset(shuffledIndices(trainingIdx),:);
7
+
8
+ validationIdx = idx+1 : idx + 1 + floor(0.1 * length(shuffledIndices) );
9
+ validationDataTbl = vehicleDataset(shuffledIndices(validationIdx),:);
10
+
11
+ testIdx = validationIdx(end)+1 : length(shuffledIndices);
12
+ testDataTbl = vehicleDataset(shuffleIndices(testIdx),:);