Giter VIP home page Giter VIP logo

Comments (7)

kstaats avatar kstaats commented on September 15, 2024

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

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.

kstaats avatar kstaats commented on September 15, 2024

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

I'll try to make a function to write generation vs fitness. we'll find out.

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

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.

kstaats avatar kstaats commented on September 15, 2024

from karoo_gp.

granawkins avatar granawkins commented on September 15, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.