Skip to content

Instantly share code, notes, and snippets.

View ltiao's full-sized avatar
🏗️
Building

Louis Tiao ltiao

🏗️
Building
View GitHub Profile
@ltiao
ltiao / EI.ipynb
Created August 24, 2021 13:31
The Expected Improvement (EI) acquisition function plotted as a function of the predictive mean and variance for a fixed threshold.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ltiao
ltiao / append.py
Created August 11, 2021 18:39
Appending to an existing CSV with Pandas
import numpy as np
import pandas as pd
from pathlib import Path
from string import ascii_lowercase
path = Path("test.csv")
n_rows = 5
n_cols = 4
@ltiao
ltiao / Quasi-Monte Carlo.ipynb
Created July 5, 2021 20:24
Quasi-Monte Carlo in SciPy 1.7.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import sys
import click
import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib.cm import get_cmap
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.