This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
References: | |
https://medium.com/teconomics-blog/using-ml-to-resolve-experiments-faster-bd8053ff602e | |
https://insightr.wordpress.com/2017/06/28/cross-fitting-double-machine-learning-estimator/ | |
https://arxiv.org/pdf/1608.00060.pdf | |
''' | |
import numpy as np | |
from sklearn.linear_model import LassoCV, LinearRegression, BayesianRidge, LogisticRegression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Install choco .exe and add choco to PATH | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
:: for ease of updating | |
choco install ChocolateyGUI -fy | |
:: basics | |
choco install googlechrome -fy | |
choco install agentransack -fy | |
choco install vlc -fy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sklearn.impute import MICEImputer | |
from sklearn.datasets import load_boston | |
from sklearn.ensemble import RandomForestRegressor | |
from sklearn.pipeline import Pipeline | |
from sklearn.model_selection import cross_val_score | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
sns.set(context='poster') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Jul 21 07:44:21 2020 | |
@author: serge | |
""" | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import seaborn as sns |
OlderNewer