@@ -151,7 +151,7 @@ int multivarPredicts() {
151
151
int targetValCol = 7 ;
152
152
153
153
std::vector<double > * timeSeries;
154
- timeSeries = fileProc->readMultivariate (" datasets/occupancyData/datatraining.txt" ,lines,inputVecSize,colIndxs,targetValCol);
154
+ timeSeries = fileProc->readMultivariate (" datasets/multivariate/input/ occupancyData/datatraining.txt" ,lines,inputVecSize,colIndxs,targetValCol);
155
155
156
156
// Creating the input vector Array
157
157
std::vector<double > * input;
@@ -176,7 +176,7 @@ int multivarPredicts() {
176
176
int predictions = 2000 ; // prediction points
177
177
lines = 2000 ; // lines read from the files
178
178
179
- timeSeries = fileProc->readMultivariate (" datasets/occupancyData/datatest.txt" ,lines,inputVecSize,colIndxs,targetValCol);
179
+ timeSeries = fileProc->readMultivariate (" datasets/multivariate/input/ occupancyData/datatest.txt" ,lines,inputVecSize,colIndxs,targetValCol);
180
180
input = new std::vector<double >[1 ];
181
181
double result;
182
182
double min = 0 , max = 0 ;
@@ -219,8 +219,8 @@ int multivarPredicts() {
219
219
// Open the file to write the time series predictions
220
220
std::ofstream out_file;
221
221
std::ofstream out_file2;
222
- out_file.open (" datasets/multiResults.txt" ,std::ofstream::out | std::ofstream::trunc );
223
- out_file2.open (" datasets/multiTargets.txt" ,std::ofstream::out | std::ofstream::trunc );
222
+ out_file.open (" datasets/multivariate/predictions/occupancyData/ multiResults.txt" ,std::ofstream::out | std::ofstream::trunc );
223
+ out_file2.open (" datasets/multivariate/predictions/occupancyData/ multiTargets.txt" ,std::ofstream::out | std::ofstream::trunc );
224
224
225
225
for (int i = 0 ; i < predictions; i++) {
226
226
out_file<<timeSeries[lines].at (i)<<" ," <<resultVec.at (i)<<" \n " ;
@@ -345,9 +345,9 @@ int multivarPredicts() {
345
345
int main () {
346
346
347
347
// predicting univariate time series
348
- univarPredicts ();
348
+ // univarPredicts();
349
349
350
350
// predicting multivariate series
351
- // multivarPredicts();
351
+ multivarPredicts ();
352
352
353
353
}
0 commit comments