I've used exactly the same code in both research and algorithms, but in algorithms, it doesn't work for ARMA function.
from statsmodels.tsa.arima_model import ARMA
degree = {}
for x in range(0,5):
for y in range(0,5):
try:
arma = ARMA(result, (x,y)).fit()
degree[str(x) + str(y)] = arma.bic
except:
continue
dic= sorted(degree.iteritems(), key = lambda d:d[1])
p = int(dic[0][0][0])
q = int(dic[0][0][1])
In the algorithms environment, it produced an error "Something went wrong. Sorry for the inconvenience. Try using the built-in debugger to analyze your code. If you would like help, send us an email.". However, in research, it worked well. Anyone can tell me why?? Thanks