skops icon indicating copy to clipboard operation
skops copied to clipboard

RFC should/when could skrub be added as trusted source by skops?

Open MarieSacksick opened this issue 2 weeks ago • 1 comments

As of today, skops do no consider skrub as a trusted source.

# %%
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from skrub import tabular_learner

X, y = load_iris(return_X_y=True, as_frame=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42)

model = tabular_learner("classifier")
model.fit(X_train, y_train)

# %%
from skops import io as sio

sio.dump(model, "skrub_model.skops")

# %%
model_loaded = sio.load("skrub_model.skops")

Renders the UntrustedTypesFoundException.

In the context of presenting skops, skrub & skore as in the same world, it would make it more consistant.
I'm leaving skore out of scope for now because it's more moving today.

MarieSacksick avatar Dec 08 '25 17:12 MarieSacksick