Initial control-loop setup. Unit tests for MAPE and RMSE added.

Note: computeStats function is not working correctly yet.
This commit is contained in:
rastogi 2025-09-01 12:54:24 +02:00
parent 02a7d4d93a
commit a27af6ec7f
6 changed files with 0 additions and 20 deletions

View File

@ -1,7 +0,0 @@
iterations <- 200
dt <- 1000
list(
timesteps = rep(dt, iterations),
store_result = TRUE
)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -190,14 +190,6 @@ void poet::ChemistryModule::computeStats(const std::vector<double> &pqc_vector,
double pqc_value = pqc_vector[i * size_per_prop + j];
double sur_value = sur_vector[i * size_per_prop + j];
if (i == 0 && (j % 10000 == 0)) {
std::cout << "i=" << i << ", j=" << j
<< ", idx=" << i * size_per_prop + j
<< ", pqc=" << pqc_value
<< ", sur=" << sur_value
<< std::endl;
}
if (pqc_value != 0)
{
double rel_err = (pqc_value - sur_value) / pqc_value;
@ -211,11 +203,6 @@ if (i == 0 && (j % 10000 == 0)) {
sqr_err_sum += 1.0;
count++;
}
if (pqc_value == 0 && sur_value == 0)
{
}
// else: both cases are zero, skip (no error)
}
if (i == 0)