Comments (6)
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.
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.
from karoo_gp.
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
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.
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.
This is the command line prompt:
sudo nice -1 python karoo-gp.py
My problems are:
- works fine c,r,5,5,3,120,1000 with operators: +,-,*,/,>=,if, or
- crashes c,r,6,8,3,120,1000 with operators: +,-,*,/,>=,if, or (same ops)
- error is TypeError: '>=' not supported between instances of 'GreaterThan' and 'GreaterThan' as shown previously
- sin, cos, tan , log .... disabled by code
- crashes c,r,5,5,3,120,1000 with operators: +,-,*,/,>=,if, or,sqrt with error:
- 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)
- Redo Tensorflow Comparison properly (CPU vs GPU)
- 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
- 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
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.