NSAPH-Projects / space

SpaCE, the Spatial Confounding Environment, loads benchmark datasets for causal inference methods tackling spatial confounding
https://nsaph-projects.github.io/space/
MIT License
14 stars 5 forks source link

algorithm API #49

Closed audiracmichelle closed 11 months ago

Naeemkh commented 1 year ago

@audiracmichelle, could you please provide more details about this issue. Thanks.

mauriciogtec commented 1 year ago

This is the current template in algorithms/clasess.py

from abc import ABC, abstractmethod

class SpatialMethod:
    @abstractmethod
    def estimate(self, estimand: str, **kwargs):
        """Estimates the causal effect of a treatment on an outcome.
        The available estimands are defined by the estimands() method."""
        raise NotImplementedError

    @classmethod
    def estimands(cls):
        """Returns a list of causal estimands that this method can estimate"""
        raise NotImplementedError