Counterfactual.copyName
- static Counterfactual.copyName(name)
Return the name of the copy of a variable in the twin network.
- Parameters:
name (
str) – The name of a variable of the original model.- Returns:
The name of its copy in the counterfactual world (
name*).- Return type:
str
Example
import pyagrum as gum
# the copies of the counterfactual world are named after the original variables
gum.Counterfactual.copyName("salary")
# 'salary*'
Class