File size: 739 Bytes
9f74ae0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
from sklearn.metrics import (
ConfusionMatrixDisplay,
confusion_matrix,
accuracy_score,
f1_score
)
import tempfile
from pathlib import Path
from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
from skops import card
from skops import hub_utils
# hub_utils.download(repo_id="scikit-learn/tabular-playground", dst = "./dst")
import pickle
model = pickle.load(open("./dst/model.pkl", "rb"))
# model = LogisticRegression(solver="liblinear", random_state=0).fit(X, y)
model_card = card.Card(model)
model_card.metadata.license = "mit"
model_card.add(
citation_bibtex="""
# h1
tjos osmda
""",
trainingprocedure="123",
)
model_card.save("README.md") |