Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum recursion depth exceeded #45

Open
ghost opened this issue Jun 1, 2017 · 13 comments
Open

maximum recursion depth exceeded #45

ghost opened this issue Jun 1, 2017 · 13 comments

Comments

@ghost
Copy link

ghost commented Jun 1, 2017

RuntimeError: maximum recursion depth exceeded

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

@ghost
Copy link
Author

ghost commented Jun 2, 2017

@ikki407 can you please look into this?

@ikki407
Copy link
Owner

ikki407 commented Jun 2, 2017

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

@ghost
Copy link
Author

ghost commented Jun 2, 2017

@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
Copy link
Author

ghost commented Jun 2, 2017

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

@ikki407
Copy link
Owner

ikki407 commented Jun 2, 2017

@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
Copy link
Owner

ikki407 commented Jun 2, 2017

@Eitrig good luck on your Kaggle!!

@ghost
Copy link
Author

ghost commented Jun 2, 2017

@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
Copy link
Author

ghost commented Jun 2, 2017

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

@ghost
Copy link
Author

ghost commented Jun 4, 2017

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

@ikki407
Copy link
Owner

ikki407 commented Jun 5, 2017

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

@ghost
Copy link
Author

ghost commented Jun 5, 2017

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

@deadskull7
Copy link

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

@deadskull7
Copy link

You might want to import sys before too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants