Repository navigation
Causal Recourse Blog Post - JSoC - #13
Conversation
…tation for JSoC Causal Recourse post
|
hi @JorgeLuizFranco can you tell me how did you use the bib file with the .qmd notebook? |
Hey @pasq-cat, in fact for me it is not rendering the .bib also locally, but I am following the standard I used in the CE.jl documentation. |
@pasq-cat I think it worked for me now including : bibliography: bib.bib in the header of the .qmd file. |
There was a problem hiding this comment.
I think this file can be removed?
There was a problem hiding this comment.
LGTM although I think the conclusion is still missing here?
There was a problem hiding this comment.
LGTM although I think the conclusion is still missing here?
Yes, @pat-alt. It is not finished yet, but I have already pushed because I was not understanding why the graphplot is not rendering. Should I insert an image instead?
| variables::Vector{String} | ||
| coefficients::Vector{Vector{Float64}} | ||
| residuals::Vector{Vector{Float64}} | ||
| dag::DiGraph |
There was a problem hiding this comment.
Not sure where the DiGraph type comes from, so this code currently fails (have set to eval: false)
pat-alt
left a comment
There was a problem hiding this comment.
Thank you again @JorgeLuizFranco - great job!
I have edited this a little bit and added one small comment, but otherwise this looks good to me and I'm happy to merge once @mschauer has had a look.
|
|
||
| This equation shows how each counterfactual variable $x_{SCF_i}$ is generated as a linear combination of the factual inputs $x_{F_j}$ based on the causal effects matrix, with an intercept term $b_i$ added for each variable. | ||
|
|
||
| One can note that the `orphan` nodes, that is, the nodes that do not have parents in the DAG, are going to be equal to the intercept term $\mathcal{b}_\hat{o}$. The intuition behind this is that when we do the linear regression, variables that have no causal parents are just equal to the unconditional mean of the variable, i.e, we get $x_{SCF_\hat{o}} = \mathbb{E}(x_\hat{o})$. Because of this, in some cases a better understanding of the regression is needed, so the residuals are also part of the SCM structure, |
There was a problem hiding this comment.
Does orphan need to be orphan here? Implies that his is an object in the code.
There was a problem hiding this comment.
Does orphan need to be
orphanhere? Implies that his is an object in the code.
Indeed, going to remove this.
|
@JorgeLuizFranco I think Moritz might be out-of-office at the moment, so I'll go ahead an merge this now, because I would love to see it published. @mschauer still happy to make any adjustments later, of course. |
|
Sorry, I am in a very busy week. Thank you for covering for me. |
added introduction , overview, contributions, math and start implemen…