kochbj / deep-learning-for-causal-inference Goto Github PK
View Code? Open in Web Editor NEWExtensive tutorials for learning how to build deep learning models for causal inference (HTE) using selection on observables in Tensorflow 2.
Extensive tutorials for learning how to build deep learning models for causal inference (HTE) using selection on observables in Tensorflow 2.
In Tutorial 1, there is the following saying:
While you should experiment with different learning rates, I recommend having a conservative (smaller) learning rate because we really want our estimator to be unbiased.
Here, "unbiased" means that no selection bias or that the estimator converges around a global minimum?
Hi:
Thanks for your amazing tutorial first. I want to know where is the dragonnet tutorial you mentioned?
Thanks!
Hi,
I have read the tutorial and it is really detailed and helpful! Thanks a lot!
But I got a question and hope you can help me. So in dragonnet implementation in tutorial 3, we estimate our target with 2 method, one is ATE and another is TARREG_CATE. So my question is
Hi, this is a great tutorial! Thank you for sharing.
I have a question about implementing Dragonnet with a large dataset (in my case 200k subjects). Since to calculate loss it needs to construct a large matrix (200k x 200k) in float32 dtype, that cannot fit into memory. Do you have any suggestions?
Thanks
In the implementation, na
and nb
is not used.
def pdist2sq(A, B):
#helper for PEHEnn
#calculates squared euclidean distance between rows of two matrices
#https://gist.github.com/mbsariyildiz/34cdc26afb630e8cae079048eef91865
# squared norms of each row in A and B
na = tf.reduce_sum(tf.square(A), 1)
nb = tf.reduce_sum(tf.square(B), 1)
# na as a row and nb as a column vectors
na = tf.reshape(na, [-1, 1])
nb = tf.reshape(nb, [1, -1])
# return pairwise euclidean difference matrix
D=tf.reduce_sum((tf.expand_dims(A, 1)-tf.expand_dims(B, 0))**2,2)
return D
In Tutorial 1, it is calculated according to the following equation:
No matter t equals 0 or 1, the value is opposite to what it is supposed to be.
Hi,
Very usefull and great tutorials! Any plans to add a multi treatments tutorial with tarnet or dragonnet ?
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.