MCPcopy Create free account
hub / github.com/anyoptimization/pymoo / _sample

Method _sample

pymoo/core/variable.py:62–68  ·  view source on GitHub ↗

Randomly sample n instances (abstract method).

(
        self,
        n: int,
        random_state: object = None,
    )

Source from the content-addressed store, hash-verified

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,

Callers 1

sampleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected