aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
counterfactual.h File Reference
#include <memory>
#include <ostream>
#include <string>
#include <agrum/CM/causalImpact.h>
#include <agrum/CM/counterfactual_tpl.h>
Include dependency graph for counterfactual.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gum::Counterfactual< GUM_ELEMENT >
 Computes a counterfactual distribution by building a twin model, then evaluating a causal effect on that twin and adapting the result back to the original model’s variables. More...

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities

Functions

template<GUM_Numeric GUM_ELEMENT>
Tensor< GUM_ELEMENT > gum::counterfactual (const CausalModel< GUM_ELEMENT > &cm, const Set< std::string > &on, const Set< std::string > &whatif, const HashTable< std::string, std::string > &profile=HashTable< std::string, std::string >(), const HashTable< std::string, std::string > &values=HashTable< std::string, std::string >())
 Compute a counterfactual distribution using the high-level API.
template<GUM_Numeric GUM_ELEMENT>
CausalModel< GUM_ELEMENT > gum::counterfactualModel (const CausalModel< GUM_ELEMENT > &cm, const HashTable< std::string, std::string > &profile, const Set< std::string > &whatif)
 Build the twin causal model.