(self, weights_output, decimal=10)
| 85 | self.data_input = np.squeeze(self.data_input, axis=1) |
| 86 | |
| 87 | def validate_output_weights(self, weights_output, decimal=10): |
| 88 | assert weights_output.shape == self.weights.shape, ( |
| 89 | f"Shapes of the output weight array {weights_output.shape} and " |
| 90 | f" input weight array {self.weights.shape} do not match. Can not compare the arrays" |
| 91 | ) |
| 92 | |
| 93 | # Check if the weights match |
| 94 | npt.assert_array_almost_equal( |
| 95 | weights_output, |
| 96 | self.weights, |
| 97 | decimal=decimal, |
| 98 | err_msg="Estimated weights do not match the weights used for dataset generation", |
| 99 | ) |
| 100 | |
| 101 | |
| 102 | def test_rfactor_compute_testing_single_spectrum(): |
no outgoing calls
no test coverage detected