title |
---|
Statistic |
# https://www.kaggle.com/code/carlmcbrideellis/what-is-adversarial-validation/notebook
from scipy import stats
features_list = X_test.columns.values.tolist()
for feature in features_list:
statistic, pvalue = stats.kstest(X_train[feature], X_test[feature])
print("p-value %.2f" %pvalue, "for the feature",feature)
# https://maxhalford.github.io/blog/lightgbm-focal-loss/
https://www.kaggle.com/code/rohanrao/amex-competition-metric-implementations