pytc.legacy.df.test_accuracy¶ pytc.legacy.df.test_accuracy(rho_orig, C, P)[source]¶ Calculate reconstruction relative and absolute errors. Parameters: rho_orig (numpy.ndarray) – Original tensor (N_b, N_grid, *trailing_dims) C (numpy.ndarray) – Selected columns (N_b, n_rank, *trailing_dims) P (numpy.ndarray) – Interpolation coefficients (n_rank, N_grid, *trailing_dims) Returns: Relative error of reconstruction abs_error: Absolute error of reconstruction Return type: rel_error