Comments (7)
from karoo_gp.
Thank you Aymen. I was not aware of this problem. Much appreciated. By "2000 iterations" do you mean generations? kai
…
On 6/20/21 11:26 PM, asksak wrote: Hello, As I was working on Karoo, and when testing I observed this: SQUARE ROOT causes the runs to become very slow, and the more iterations are run the slower Karoo became until I got memory error. I googled the issue and it seems its a sympy issue with sqrt. I used 50 as population and (as I modified the code) I used 2000 as iterations. the program ran very fast and completed without sqrt. However with sqrt, it was slow, then became unresponsive then gave a memory error. FYI, Aymen
Yes iterations is generations, I modified the code to accept 10K generations.
from karoo_gp.
from karoo_gp.
I'll try to make a function to write generation vs fitness. we'll find out.
from karoo_gp.
Wow. I have never needed to go beyond 50 generations. I am very curious as to the kind of data you are processing, and how your outcome varies after 50, 100, 1000, etc. Have you plotted the fitness function vs the generations? Are you overfitting?
…
Hello Kai,
I tried 50, 100, 200 and the results were:
for 50 gens: best Classification fitness score: 264
for 100 gens: best Classification fitness score: 284.0
for 200 gens: best Classification fitness score: 379.0
To verify I tested other sets( 4 sets ) of data than the one used for the run, I used excel and inserted the equations there:
for 50 gens: prediction accuracy: >50% and less than 60%
for 100 gens: Classification fitness score: >50% and less than 65%
for 200 gens: Classification fitness score: >70% and less than 80%
I understand the possibility of overfitting, however, GP depends on RANDOM mutations, and I modified the the probability of mutation in the code to also be random within a certain range for each generation. This dynamic mutation method is much more effective than static mutation values.
But YES, when listing the best trees from each run, they must be all taken into consideration as some freak (high fitness) trees just classify everything as 1 or 0 when tested with other sets in excel (that confused me as I am sure I ported the tree equations correctly to excel).
Best Regards,
Aymen
from karoo_gp.
from karoo_gp.
@asksak Have you tried sqrt
in the newest release? Let me know if it's working, and I'll close this issue.
from karoo_gp.
Related Issues (20)
- Conditionals and Logical Operators HOT 1
- Sporadic `ERROR! In fx_evolve_grow_mutate: branch_depth -1 < 0` HOT 6
- Add a machine-parsable `log_test.json` HOT 1
- Tensorflow v2 behaviour HOT 2
- tf.map_fn in population.py problem HOT 2
- Tensorflow meta-issue HOT 13
- Error HOT 9
- Tree Error! HOT 1
- Latest KarooGP Issues
- Functions that produce nan/inf values HOT 7
- Use joblib to use multithreading/multiprocessing computing
- Use ncurses for display HOT 1
- Switch tree navigation from breadth-first to depth-first HOT 3
- Logic & Comparison HOT 3
- Error HOT 6
- Karoo 3.0 meta-issue HOT 2
- Sympy & Numpy Issue HOT 3
- Fittest tree issue HOT 4
- TypeError: '<' not supported between instances of 'GreaterThan' and 'GreaterThan' HOT 4
- Redo Tensorflow Comparison properly (CPU vs GPU)
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 karoo_gp.