maximum recursion depth exceeded
RuntimeError: maximum recursion depth exceeded
I am getting this error while running the first model in stage 1. how to over come this ?
@ikki407 can you please look into this?
@Eitrig Thank you for your report. I'll investigate that bug for a while. Could you send me your log?
@ikki407 below is the log. let me know if you need anything else. PS: i tired increasing the recursion limit to 10,000. but I am still getting the same error.
the first line gets repeated several 100 times but i deleted to shorten the message
File "/home/xafxir/anaconda2/lib/python2.7/site-packages/pandas/core/groupby.py", line 4176, in loop
return loop(labels, shape)
File "/home/xafxir/anaconda2/lib/python2.7/site-packages/pandas/core/groupby.py", line 4176, in loop
return loop(labels, shape)
File "/home/xafxir/anaconda2/lib/python2.7/site-packages/pandas/core/groupby.py", line 4176, in loop
return loop(labels, shape)
File "/home/xafxir/anaconda2/lib/python2.7/site-packages/pandas/core/groupby.py", line 4150, in loop
stride = np.prod(shape[1:nlev], dtype='i8')
File "/home/xafxir/anaconda2/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 2539, in prod
out=out, **kwargs)
RuntimeError: maximum recursion depth exceeded
@ikki407 I am trying to do stacking for Kaggle - Quora Competetion which ends of Wednesday. Hopefully this will be resolved soon, so that I can spend Saturday and Sunday on stacking. Thank you :+1:
@Eitrig ok, I'll check the code. If you have some estimation whrer the bug occurred in the stacking code, please let me know that.
If possible, could you tell me the questions below:
- Did you change the original code?
- Are the versions of your installed libraries the same as in requirement.py? (I'm sorry for my not update adapting to the latest package...)
@Eitrig good luck on your Kaggle!!
@ikki407 I didn't change anything in the code. I just ignored the part where u made extra features when u did log transformation on the original data, as I already had enough features.
I haven't checked the versions. Let me check and come back to you in in few minutes.
@ikki407 i couldn't find the requirement.py file you mentioned. Is it possible to post the requirements here ? ty
@ikki407 hey did you get a chance to look in to this ? I am hoping I can use this for stacking for the competition :)
@Eitrig sorry for late reply, I have been very busy on business.
And there was no requirement.py file, it's my mistake.
I'll check tonight.
@ikki407 ok. I will be waiting for it. Just 1 day left for the competition though. I would like to try this and see how it goes on the leader board. Hoping to get a silver. :+1:
This helped me: sys.setrecursionlimit(X) where X is an integer and can be put accordingly till the time the error is removed.
You might want to import sys before too.