MCPcopy
hub / github.com/ray-project/ray / to_numpy

Method to_numpy

python/ray/data/block.py:471–479  ·  view source on GitHub ↗

Convert this block (or columns of block) into a NumPy ndarray. Args: columns: Name of columns to convert, or None if converting all columns.

(
        self, columns: Optional[Union[str, List[str]]] = None
    )

Source from the content-addressed store, hash-verified

469 raise NotImplementedError
470
471 def to_numpy(
472 self, columns: Optional[Union[str, List[str]]] = None
473 ) -> Union[np.ndarray, Dict[str, np.ndarray]]:
474 """Convert this block (or columns of block) into a NumPy ndarray.
475
476 Args:
477 columns: Name of columns to convert, or None if converting all columns.
478 """
479 raise NotImplementedError
480
481 def to_arrow(self) -> "pyarrow.Table":
482 """Convert this block into an Arrow table."""

Callers 13

to_batch_formatMethod · 0.95
hash_splitMethod · 0.45
_block_to_ndarrayFunction · 0.45
sa_episode.pyFile · 0.45
plot_parameter_historyFunction · 0.45
_dmat_from_arrowFunction · 0.45

Calls

no outgoing calls

Tested by 1