Skip to content

Instantly share code, notes, and snippets.

View ogrisel's full-sized avatar

Olivier Grisel ogrisel

View GitHub Profile
@ogrisel
ogrisel / probabilistic_regression_figures.ipynb
Created September 28, 2025 13:59
Proabilisitc regression
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ogrisel
ogrisel / three_blankets.ipynb
Last active September 25, 2025 15:25
Non unique Markov blanket example.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ogrisel
ogrisel / stratified_cv.ipynb
Last active December 9, 2024 10:17
Impact of the use of stratified cross-validation on the assesment of epistemic uncertainty in ML performance metrics
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.
@ogrisel
ogrisel / Miscalibration_of_logistic_regression_models.ipynb
Last active March 11, 2024 17:22
About the miscalibration of logistic regression models
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ogrisel
ogrisel / quantile_regression_as_classification.py
Last active November 29, 2023 17:18
Quantile regression as classification
# %%
from scipy.interpolate import interp1d
from sklearn.base import BaseEstimator, RegressorMixin, clone
from sklearn.utils.validation import check_is_fitted
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import KBinsDiscretizer
from sklearn.utils.validation import check_consistent_length
from sklearn.utils import check_random_state
import numpy as np
@ogrisel
ogrisel / bench_pca.py
Last active July 3, 2023 18:30
PCA GPU
# %%
from sklearn import set_config
from sklearn.base import clone
set_config(array_api_dispatch=True)
# %%
try:
import torch
except ModuleNotFoundError:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ogrisel
ogrisel / monotonic_bias.ipynb
Last active June 16, 2023 07:29
Monotonic bias study
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ogrisel
ogrisel / minimum_norm_ridge_limit.ipynb
Last active October 22, 2024 15:58
Ridge and intercept estimation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.