new baseline utils added

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

8
baselines/utils.py Normal file
View File

@ -0,0 +1,8 @@
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