My code is too long and I don't want to solve this error, because of the flaws of original data.
The error is:
RuntimeError: Optimal parameters not found: Number of calls to function has reached maxfev = 50000.
This error come out when iterations = maxfev. What I want to do is: when the iterations = maxfev, don't shut down the code, but to continue operating next pack of data.
For example:
if raise RuntimeError :
data = data
else:
data = data-1
Something like that.
I just don't want the program to stop.
I don't know did I say clearly?
Ask me if you need any details.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…