ctf4science.eval_module.reconstruction#

ctf4science.eval_module.reconstruction(truth: ndarray, prediction: ndarray) float#

Compute the reconstruction score (relative L2 over full trajectory, as percentage).

Score is 100 * (1 - relative_L2_error) so that 100 is perfect.

Parameters:
truth(T, F) ndarray

Ground truth, shape (time steps, features).

prediction(T, F) ndarray

Predicted data, same shape as truth.

Returns:
float

Reconstruction score as a percentage (100 = perfect).