-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
IndexError: The gp.generate function tried to add a primitive of type '<type 'object'>', but there is none available. #141
Comments
I can't reproduce this error in Python 2.7 nor Python 3.5 with the TPOT v0.3.0. What version are you running? Are you running it on top of an up-to-date Anaconda install? |
No I'm not running in Anconda, here is my setting:
and Python 2.7.11. Do I miss something? |
Here are the package versions that we're running for Python 2: Python 2.7.11 Do you get this error every time you run the code in the notebook? |
Yes, all of the three notebooks are affected by the same issue. I'm trying to compare with your deps: Python 2.7.11 2.7.11 So it seems that we have few mismatched versions. I will try to update my reqs if possibile. In the meanwhile it seems that there is some empty list going around... |
Also updating deps the issues is still there. I replicated your reqs except for |
The only major difference between our setups - as far as I can tell - is On Friday, May 13, 2016, Pierluigi Failla notifications@github.com wrote:
Randal S. Olson, Ph.D. E-mail: rso@randalolson.com | Twitter: @randal_olson |
I can try to do that, but I really like to use it in my own environment. Do you plan to release TPOT only for Anaconda env? |
Technically TPOT should work fine with any Python install, but the main The reason I brought up Anaconda in this case is to see whether you can On Saturday, May 14, 2016, Pierluigi Failla notifications@github.com
Randal S. Olson, Ph.D. E-mail: rso@randalolson.com | Twitter: @randal_olson |
The issue seems to be related with |
Perplexing. Do you use a specific random number seed to replicate the issue, or it literally happens every time? |
All the time |
I'm curious: Is your TPOT install from a clone of the current master branch? |
I actually: |
Ok. An Anaconda install is probably the most promising next step then. On Monday, May 16, 2016, Pierluigi Failla notifications@github.com wrote:
Randal S. Olson, Ph.D. E-mail: rso@randalolson.com | Twitter: @randal_olson |
Wanted to ping you to see if you tried an Anaconda install and could still reproduce the bug there. Very curious to see what's causing this error. I've run several thousand instances of TPOT on over 200 different data sets and never experienced this error. |
I tried with Anaconda on Win 10: |
That's a shame about xgboost on Windows. Have seen several people have that issue. I might consider dropping xgboost from TPOT because of that. |
Xgboost has been disabled from pip by the authors.
To install on a Windows 32-bit environment you need to build from source. These are the steps I took (note that I do not use Anaconda as my Python installation either.)
If the build finishes successfully, you should have a file called xgboost.exe located in the project root. To install the Python package do the following
Hopefully at this stage you should be able to import xgboost from python. For 64 bit architecture the build is similar except of course you don't want to remove the the -m64 flags in the build config file. |
Trying to run the tutorial
IRIS.ipynb
I got an IndexErrorContext of the issue
I tried to run the notebook, running the 4th cell I got the error.
Process to reproduce the issue
Open
IRIS.ipynb
in Jupyter and run allExpected result
The same output as in the
Tutorial
folder.Current result
IndexError: The gp.generate function tried to add a primitive of type '<type 'object'>', but there is none available.
The text was updated successfully, but these errors were encountered: