Reading and writing datasets, in whatever format they arrive.
Dataset — X, y and feature names — so the rest of TuiML never has to care where the data came from. Each format also has a matching save_*.load_csv, save_csv.
load_arff, save_arff. A typed text format that
load_parquet, save_parquet, plus
load_parquet_partitioned for directory-partitioned datasets.
load_excel, save_excel, and
load_excel_sheets for a workbook of several sheets.
load_json, load_jsonl, load_json_nested
save_* counterparts.
load_numpy, save_numpy (.npy / .npz).
from_pandas, to_pandas for in-memory frames.
load and save pick the right one from the file extension, so a path is usually all you need. This is what lets {"source": "sales.csv"} work in a train spec.>>> from tuiml.datasets.loaders import load
>>> data = load("sales.csv", target="label") # doctest: +SKIP
>>> data.X.shape # doctest: +SKIP
(1000, 12)
ARFF (Attribute-Relation File Format) reader and writer....
Format-detecting load and save....
CSV (Comma-Separated Values) reader and writer....
Excel spreadsheet loader....
JSON reader and writer, in three layouts....
NumPy binary format reader and writer....
Conversion between pandas DataFrames and TuiML datasets....
Apache Parquet reader and writer....