If *vmin* or *vmax* are not set on any constituent norm, use the min/max of the corresponding component in *A* to set them. Parameters ---------- A : array-like The input data, as an iterable or a structured numpy array. - If iterabl
(self, A)
| 3551 | self._changed() |
| 3552 | |
| 3553 | def autoscale_None(self, A): |
| 3554 | """ |
| 3555 | If *vmin* or *vmax* are not set on any constituent norm, |
| 3556 | use the min/max of the corresponding component in *A* to set them. |
| 3557 | |
| 3558 | Parameters |
| 3559 | ---------- |
| 3560 | A : array-like |
| 3561 | The input data, as an iterable or a structured numpy array. |
| 3562 | |
| 3563 | - If iterable, must be of length `n_components`. Each element |
| 3564 | is used for the limits of one constituent norm. |
| 3565 | - If structured array, must have `n_components` fields. Each field |
| 3566 | is used for the limits of one constituent norm. |
| 3567 | """ |
| 3568 | with self.callbacks.blocked(): |
| 3569 | A = self._iterable_components_in_data(A, self.n_components) |
| 3570 | for n, a in zip(self.norms, A): |
| 3571 | n.autoscale_None(a) |
| 3572 | self._changed() |
| 3573 | |
| 3574 | def scaled(self): |
| 3575 | """Return whether both *vmin* and *vmax* are set on all constituent norms.""" |