Skip to content

plaid.downloadable_examples

plaid.downloadable_examples

Examples for PLAID objects.

plaid.downloadable_examples.AVAILABLE_EXAMPLES module-attribute

AVAILABLE_EXAMPLES = list(keys())

plaid.downloadable_examples.samples module-attribute

samples = Samples_example()

plaid.downloadable_examples.Samples_example

Samples_example()
Source code in plaid/downloadable_examples/__init__.py
def __init__(self):
    self.cache: dict[str, Sample] = {}

plaid.downloadable_examples.Samples_example.cache instance-attribute

cache = {}

plaid.downloadable_examples.Samples_example.__getattr__

__getattr__(key)
Source code in plaid/downloadable_examples/__init__.py
def __getattr__(self, key):
    if key in _HF_REPOS.keys():
        if key not in self.cache:
            self.cache[key] = _download_sample(_HF_REPOS[key])
        return self.cache[key]
    raise ValueError(f"cant find example sample {key}")