Comments (9)
No, that is not normal. Can you give me more details?
- What does "take forever" mean?
- What version of gplearn are you running?
- Are you running all the commands in the notebook sequentially without modification?
from gplearn.
Just released the new version, can you try again with the latest? Let me know more about your error/environment/etc?
from gplearn.
Trevor, thanks a lot for your response. Somehow I didn't receive any notifications from Git for your replies. I will download the latest version and give it a try. I am running Python3.4 on Windows 7 machine with 8 cores. Hope this helps.
from gplearn.
Trevor, I tried the latest version and still have the same issue. Right now I use the default function set for now. I do have an extra question: I know gp._programs stores the symbolic expressions for each generation. Assume that I set population_size = 800, generations = 40, n_components = 20, and want to output the expressions of final results, shall I output gp._programs[39][0:19]?
Thank you so much for your patience.
from gplearn.
Update: we tested the same code on Linux environment and the same user-defined function takes No time to run. The same code ran for days on Windows without generating even the first iteration. There's no error information either. It's indeed related to the environment.
from gplearn.
Thanks for the follow up @hubokitty ... I'll attempt to set up Appveyor to run tests on Windows to see if it can replicate the problem.
Are you using a distribution like anaconda to install python and the numpy stack?
from gplearn.
SymbolicTransformer
stores the final solutions in the attribute _best_programs
. _programs
contains all of the generations but it does not sort them so the [0:19]
in your code will just get a random selection of the final generation.
from gplearn.
@hubokitty ... Tests are passing on Windows. I added a new test in #70 that performs the example in the docs with the logical function. It completes just fine on AppVeyor which runs on Anaconda in Windows.
The only difference I see that might be an issue for you is that that example uses the n_jobs
attribute which invokes the joblib
library. Can you try to run some other tests using joblib and see if that is the issue. If that is the case then the problem lies upstream of this package.
from gplearn.
Trevor, thanks a lot for your reply. I saw you opened another issue related to this. I look forward to the solution.
from gplearn.
Related Issues (20)
- what hyperparameter/s control/s the variables in final expression? HOT 2
- Add conda installation instructions
- migrate to a toml file instead of setup.py?
- how programs converge technically and use less time in later generations
- normalization for input? HOT 1
- Is it possible to access programs inside make_fitness? HOT 1
- Solution to avoid dividing by zero when substructing two Feature Names HOT 3
- Auto-Save function HOT 3
- [Question] How to use gplearn in comparison to neural networks? HOT 1
- Is there any way to get the formula expresssion of each individual? Thanks. HOT 4
- Check transformer supports pandas dataframe
- const_range error HOT 6
- Use of raw_fitness vs. penalized fitness HOT 2
- how to run gplearn by multi process ?
- Use logging instead of print HOT 1
- Would there be a way to produce the equivalent Python code for the program coming from the symbolic regress or HOT 1
- question about _weighted_pearson HOT 1
- Matrix shaped features issue HOT 1
- SymbolicClassifier doesn't classify tasks with more than 2 classes. HOT 1
- Optimal Population Size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gplearn.