Skip to content

Instantly share code, notes, and snippets.

View glemaitre's full-sized avatar

Guillaume Lemaitre glemaitre

View GitHub Profile
import numpy as np
import pandas as pd
def calcul_chute_tension(
Ib=1, S=1.5, Un=400, L=0.1, metal="cuivre", phi=np.arccos(0.85)
):
Ib = np.asarray(Ib)
S = np.asarray(S)
# %%
from sklearn.datasets import fetch_openml
usps = fetch_openml(data_id=41082)
# %%
data = usps.data
target = usps.target
# %%
# %%
# Download the original dataset to be able to easily build an index with the
# original datetime.
# The dataset is available at:
# https://archive.ics.uci.edu/ml/machine-learning-databases/00275/Bike-Sharing-Dataset.zip
import pandas as pd
df_external = pd.read_csv(
"~/Downloads/Bike-Sharing-Dataset/hour.csv",
index_col=0,
@glemaitre
glemaitre / TreeSHAP_bug.ipynb
Last active March 29, 2022 09:55
TreeSHAP bug reproducer
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.