sys.exit('(Type Error): Estimator list contains estimator that doesnt support probabilities and method is forced to soft. Either change the method or drop the estimator.')
#checking catboost:
ifestimator_list!='All':
foriinestimator_list:
if'CatBoostClassifier'instr(i):
sys.exit('(Type Error): CatBoost Classifier not supported in this function.')
#checking fold parameter
iftype(fold)isnotint:
sys.exit('(Type Error): Fold parameter only accepts integer value.')