def test_global_reconstruction_error_large_to_small(self): # tests that the GRE of a large set of features onto a smaller set of features returns within a threshold of zero gfre_val = global_reconstruction_error(self.features_large, self.features_small) self.assertTrue( abs(gfre_val) < self.eps, f"global_reconstruction_error {gfre_val} surpasses threshold for zero {self.eps}", )
def test_global_reconstruction_error_identity(self): gfre_val = global_reconstruction_error(self.features_large, self.features_large) self.assertTrue( abs(gfre_val) < self.eps, f"global_reconstruction_error {gfre_val} surpasses threshold for zero {self.eps}", )
def test_global_reconstruction_distortion_large_to_small(self): # tests that the GRD of a large set of features onto a smaller set of features returns within a threshold of zero # should just run global_reconstruction_error(self.features_large, self.features_small)