Expand source code
from abc import abstractmethod, ABC

from ..model import Model
from ..tree import Tree


class Sampler(ABC):

    @abstractmethod
    def step(self, model: Model, tree: Tree) -> bool:
        raise NotImplementedError()

Classes

class Sampler

Helper class that provides a standard way to create an ABC using inheritance.

Expand source code
class Sampler(ABC):

    @abstractmethod
    def step(self, model: Model, tree: Tree) -> bool:
        raise NotImplementedError()

Ancestors

  • abc.ABC

Subclasses

Methods

def step(self, model: Model, tree: Tree) ‑> bool
Expand source code
@abstractmethod
def step(self, model: Model, tree: Tree) -> bool:
    raise NotImplementedError()