Randomly sample n instances (abstract method).
(
self,
n: int,
random_state: object = None,
)
| 60 | return self._sample(n, random_state=random_state) |
| 61 | |
| 62 | def _sample( |
| 63 | self, |
| 64 | n: int, |
| 65 | random_state: object = None, |
| 66 | ) -> np.ndarray: |
| 67 | """Randomly sample n instances (abstract method).""" |
| 68 | pass |
| 69 | |
| 70 | def set( |
| 71 | self, |