Source code for gefest.tools.estimators.estimator

from abc import ABCMeta, abstractmethod
from typing import Any

from gefest.core.geometry import Structure


[docs] class Estimator(metaclass=ABCMeta): """Interface for estimation backends, e.g. physical simulators, neural networks."""
[docs] def __call__( self, struct: Structure, ) -> Any: """Incapsulates estimate method call for simler estimator usage.""" return self.estimate(struct)
[docs] @abstractmethod def estimate(self, struct: Structure) -> Any: """Must implemet logic of estimation.""" ...