causalaibook / metricsmlnotebooks Goto Github PK
View Code? Open in Web Editor NEWNotebooks for Applied Causal Inference Powered by ML and AI
License: MIT License
Notebooks for Applied Causal Inference Powered by ML and AI
License: MIT License
For the polishing of the notebooks, a list of the notebooks is here:
https://docs.google.com/spreadsheets/d/1RL01oaOYDZ2PM9CtjOShPM_dOrxbFbnd72dHPMOpPds/edit?usp=sharing
and the notebooks sections in the book (might slightly differ).
Tasks:
The current code links to github's wage data which is only an RData dataset, then the code reads:
Data Analysis
Set the following file_directory to a place where you downloaded https://github.com/CausalAIBook/MetricsMLNotebooks/blob/main/PM1/wage2015_subsample_inference.rdata
file_dir = None
df = pd.read_csv(file_dir)
I found two solutions:
!pip install pyreadr
import pyreadr
import numpy as np
import pandas as pd
temp = pyreadr.read_r('/content/wage2015_subsample_inference.Rdata')
df = temp['data']
outcome_controls =115/num_controls
should be outcome_controlled
to match later code.
std_treatment_effect = np.sqrt(var_treatment_effect
is missing the right parenthesis.
print(f"95 % confidence interval is [{CI_delta[0])}, {CI_delta[1]}]")
has an extra parenthesis after CI_delta[0]
.
In the Pfizer/BNTX Covid-19 RCT markdown cell, "averal" is written instead of "overall."
In the cell below, "vaccie" is written instead of "vaccine."
In cell 2 of pm2-notebook-jannis.ipynb
growth_read = read_r(wget("https://github.com/CausalAIBook/MetricsMLNotebooks/blob/main/data/GrowthData.rda?raw=true"))
should be
growth_read = read_r(wget.download("https://github.com/CausalAIBook/MetricsMLNotebooks/blob/main/data/GrowthData.rda?raw=true"))
In this issue, we will update the notebooks housed on kaggle for PM1 following the updated .Rmd files in PM1.
@MartinSpindler Can you assign a task to the relevant person to take the newly updated .Rmd files in directory PM1 and convert them to Kaggle notebooks? We will then want to change the Python code and notebooks to identical structure.
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.