plaid.examples.dataset ====================== .. py:module:: plaid.examples.dataset .. autoapi-nested-parse:: Examples for PLAID `Dataset` objects. Attributes ---------- .. autoapisummary:: plaid.examples.dataset.datasets Classes ------- .. autoapisummary:: plaid.examples.dataset._LazyDatasets Functions --------- .. autoapisummary:: plaid.examples.dataset._make_example Module Contents --------------- .. py:class:: _LazyDatasets Lazy-loaded example datasets for PLAID. Access datasets lazily: download and convert only on first access, then cache. .. py:attribute:: _cache :type: dict[str, plaid.Dataset] .. py:method:: _load_dataset(ex_name: str, hf_repo: str) -> plaid.Dataset Generic helper to lazily load a HuggingFace dataset and convert it to PLAID. :param ex_name: Example name. :type ex_name: str :param hf_repo: HuggingFace dataset repository name in the PLAID-datasets community. :type hf_repo: str :returns: The PLAID dataset. :rtype: Dataset :raises RuntimeError: If the dataset cannot be downloaded or converted. .. py:function:: _make_example(ex_name, hf_repo) .. py:data:: datasets