Reset the `weights` to `x`.
(self, x: np.ndarray)
| 697 | self.swigobj = None |
| 698 | |
| 699 | def update_weights(self, x: np.ndarray): |
| 700 | """ |
| 701 | Reset the `weights` to `x`. |
| 702 | """ |
| 703 | if x.size != self.num_params: |
| 704 | raise ValueError( |
| 705 | f"weights of shape {self.weights.size} do not match user specified grid dimension: {self.grid_size}" |
| 706 | ) |
| 707 | |
| 708 | self.weights[:] = self.check_weights(x).flatten().astype(np.float64) |
| 709 | |
| 710 | |
| 711 | class Susceptibility: |
no test coverage detected