Skip to content

Instantly share code, notes, and snippets.

View ivallesp's full-sized avatar
🤓
Studying

Iván Vallés Pérez ivallesp

🤓
Studying
View GitHub Profile
@ivallesp
ivallesp / covariate_shift_eval_example.py
Created April 16, 2023 16:13
Example of simple test for covariate shift
import pandas as pd
import numpy as np
import scipy as sp
from sklearn.model_selection import cross_val_score
from sklearn.ensemble import RandomForestClassifier
from sklearn.utils import shuffle
from scipy.stats import ttest_1samp
np.random.seed(655321)