ray.data.Datasource#
- class ray.data.Datasource[source]#
Interface for defining a custom
Dataset
datasource.To read a datasource into a dataset, use
read_datasource()
.Methods
Deprecated: Implement
get_read_tasks()
andestimate_inmemory_data_size()
instead.Return an estimate of the in-memory data size, or None if unknown.
Return a human-readable name for this datasource.
Execute the read and return read tasks.
Deprecated: Implement
get_read_tasks()
andestimate_inmemory_data_size()
instead.Attributes
If
False
, only launch read tasks on the driver's node.