Spaces:
Running
on
Zero
Running
on
Zero
from typing import * | |
from abc import ABC, abstractmethod | |
class Sampler(ABC): | |
""" | |
A base class for samplers. | |
""" | |
def sample( | |
self, | |
model, | |
**kwargs | |
): | |
""" | |
Sample from a model. | |
""" | |
pass | |