rcalib code striped

This commit is contained in:
Lorenzo Volpi 2023-11-22 19:18:40 +01:00
parent b566049b4f
commit cb31e26d2e
1 changed files with 0 additions and 9 deletions

View File

@ -1,14 +1,5 @@
import numpy as np
from sklearn import clone
from sklearn.base import BaseEstimator
def clone_fit(c_model: BaseEstimator, data, labels):
c_model2 = clone(c_model)
c_model2.fit(data, labels)
return c_model2
def get_score(pred1, pred2, labels):
return np.mean((pred1 == labels).astype(int) - (pred2 == labels).astype(int))