sys.exit("(Value Error): estimator_list parameter only accepts 'All' as string or trained model object")
#checking method param with estimator list
ifestimator_list!='All':
ifmethod=='soft':
check=0
foriinestimator_list:
ifhasattr(i,'predict_proba'):
pass
else:
check+=1
ifcheck>=1:
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 fold parameter
iftype(fold)isnotint:
sys.exit('(Type Error): Fold parameter only accepts integer value.')