stacking icon indicating copy to clipboard operation
stacking copied to clipboard

maximum recursion depth exceeded

Open ghost opened this issue 8 years ago • 13 comments

RuntimeError: maximum recursion depth exceeded

I am getting this error while running the first model in stage 1. how to over come this ?

ghost avatar Jun 01 '17 16:06 ghost

@ikki407 can you please look into this?

ghost avatar Jun 02 '17 08:06 ghost

@Eitrig Thank you for your report. I'll investigate that bug for a while. Could you send me your log?

ikki407 avatar Jun 02 '17 16:06 ikki407

@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

ghost avatar Jun 02 '17 17:06 ghost

@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:

ghost avatar Jun 02 '17 17:06 ghost

@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:

  1. Did you change the original code?
  2. 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...)

ikki407 avatar Jun 02 '17 17:06 ikki407

@Eitrig good luck on your Kaggle!!

ikki407 avatar Jun 02 '17 17:06 ikki407

@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.

ghost avatar Jun 02 '17 18:06 ghost

@ikki407 i couldn't find the requirement.py file you mentioned. Is it possible to post the requirements here ? ty

ghost avatar Jun 02 '17 18:06 ghost

@ikki407 hey did you get a chance to look in to this ? I am hoping I can use this for stacking for the competition :)

ghost avatar Jun 04 '17 05:06 ghost

@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 avatar Jun 05 '17 02:06 ikki407

@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:

ghost avatar Jun 05 '17 14:06 ghost

This helped me: sys.setrecursionlimit(X) where X is an integer and can be put accordingly till the time the error is removed.

deadskull7 avatar Sep 26 '18 05:09 deadskull7

You might want to import sys before too.

deadskull7 avatar Sep 26 '18 05:09 deadskull7