(self, a, size=None, replace=True, p=None, chunks="auto")
| 534 | |
| 535 | @derived_from(np.random.RandomState, skipblocks=1) |
| 536 | def choice(self, a, size=None, replace=True, p=None, chunks="auto"): |
| 537 | # TODO(expr): Fix this, this is ugly and should happen later |
| 538 | ( |
| 539 | a, |
| 540 | size, |
| 541 | replace, |
| 542 | p, |
| 543 | axis, # np.random.RandomState.choice does not use axis |
| 544 | chunks, |
| 545 | meta, |
| 546 | dependencies, |
| 547 | ) = _choice_validate_params(self, a, size, replace, p, 0, chunks) |
| 548 | |
| 549 | return new_collection( |
| 550 | RandomChoice(a.expr, chunks, meta, self._numpy_state, replace, p) |
| 551 | ) |
| 552 | |
| 553 | @derived_from(np.random.RandomState, skipblocks=1) |
| 554 | def exponential(self, scale=1.0, size=None, chunks="auto", **kwargs): |
no test coverage detected