Giter VIP home page Giter VIP logo

Comments (6)

granawkins avatar granawkins commented on September 15, 2024 1

Ok, let me take a look. Can you send the exact command-line prompt you're using? like python3 karoo-gp.py -pop 120 etc.

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

Note that Sympify caused a similar error in the last version when I tried to code comparison operators. It evaluated parts of some statements.

from karoo_gp.

granawkins avatar granawkins commented on September 15, 2024

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

Try with ‘==‘ instead?

Thanks for the feedback though, that's something we should recognize early and give a clearer error message.

On Wed, 24 Aug 2022 at 23:35 asksak @.***> wrote:

Note that Sympify caused a similar error in the last version when I tried

to code comparison operators. It evaluated parts of some statements.

Reply to this email directly, view it on GitHub

#91 (comment),

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AL7VFK35PQWZR6LBPJLQ2CLV2ZFNVANCNFSM57P7WDKQ

.

You are receiving this because you are subscribed to this thread.Message

ID: @.***>

By the way the operator is >= I don't know why this editor removed the >. I tried removing OR and keeping >= and the run completes successfully, but if >= and or are in the operator list it crashes.

Note the error at the end:

TypeError: '>=' not supported between instances of 'GreaterThan' and 'GreaterThan'

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

On the other hand, if settings are

c,r,5,5,3,120,1000

The session will run with no problem.

You may ask why I modified the generations to be able to reach 1000; well according to my experience this is important to reach better fitness values, and no, the result would not be overfitted.

from karoo_gp.

asksak avatar asksak commented on September 15, 2024

This is the command line prompt:

sudo nice -1 python karoo-gp.py

My problems are:

  1. works fine c,r,5,5,3,120,1000 with operators: +,-,*,/,>=,if, or
  2. crashes c,r,6,8,3,120,1000 with operators: +,-,*,/,>=,if, or (same ops)
  3. error is TypeError: '>=' not supported between instances of 'GreaterThan' and 'GreaterThan' as shown previously
  4. sin, cos, tan , log .... disabled by code
  5. crashes c,r,5,5,3,120,1000 with operators: +,-,*,/,>=,if, or,sqrt with error:
  6. Sympify of expression 'could not parse '(((A6x)+(A21x))/((A32x)sqrt(A7)))'' failed, because of exception being raised:
    SyntaxError: invalid syntax (, line 1)

I hope this helps

If you need me to do specific tests, I would be more than happy

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.