traveler.JaxTable#
- class traveler.JaxTable(*args, **kwargs)[source]#
Bases:
JaxDatasetAnalog of a pyarrow Table, but with JAX arrays.
Every column is a JAX array, and each should be a 1D array of common length, or a 0D array (scalar). The table can be indexed or sliced by row. Column ordering is loosely preserved, but not guaranteed.
Allocate a table with an empty row-count cache.
Methods#
|
Assign new variables to the JaxDataset, returning a new instance. |
|
Assign new variables to the JaxDataset, in place. |
|
Create a copy of the JaxTable, without any validation. |
|
Create a JaxTable from a pandas DataFrame. |
|
Create a dataset from a Parquet file. |
|
Create a JaxTable from a polars DataFrame. |
|
Print a compact summary of fields, shapes, and data types. |
|
Read a CSV file into a JaxTable. |
|
Return a schema of the JaxDataset, describing its fields and types. |
|
Convert the JaxDataset to a dictionary of JAX arrays. |
|
Convert the JaxTable to a pandas DataFrame. |
|
Convert the table to a Polars data frame. |
|
Validate dataset fields against the class annotations. |
Attributes#
Return the one-dimensional row shape of the table. |