Comments (4)
Hi @sambatra,
You can explicitly set which operators you'd like to include in the "function_set"
key of config.json
under the "task"
top-level key. For example:
"task": {
"function_set" : ["add", "sub", "mul", "div"],
...
},
...
You can also include "const"
as a token to if you'd like to include optimized floating-point constants, just keep in mind that this will slow the runtime down by a lot because it introduces an inner optimization loop.
I would like to avoid as much as possible as they make the results a bit harder to interpret.
As an alternative, with DSR you can add limits to the number of times a token can appear in a given expression. This allows you to still include trig/exp/log tokens, without letting them overwhelm the expression and become less interpretable. For example, you can limit each expression to having at most a total of 2 trig/exp/log terms by adjusting the config like this:
"task": {
"function_set" : ["add", "sub", "mul", "div", "sin", "cos", "exp", "log"],
...
},
"prior" : {
"repeat" : {"tokens" : ["exp", "log", "sin", "cos"], "max_" : 2},
...
},
},
...
I would strongly recommend this alternative, because even just "max_" : 1
it will greatly increase the expressivity of your search space.
Let me know if this helps! Don't hesitate to reach out for anything else.
from deep-symbolic-optimization.
Many thanks for you help. I will experiment a bit.
from deep-symbolic-optimization.
It works pretty well, thanks!...I will try the alternative you suggested.
from deep-symbolic-optimization.
Wonderful! Stay tuned for an update to the code soon.
from deep-symbolic-optimization.
Related Issues (20)
- create primitive set mapping name clash HOT 2
- Deap varying with constraints HOT 4
- Methods for Running DSO HOT 4
- Normalization for input variables to domain (0,1) HOT 1
- Normalization for input variables to domain (0,1) HOT 1
- Different Learned Equation with Different Numpy Array Shape HOT 4
- Doubts about output HOT 1
- Ratio of training set to testing set HOT 1
- training iteration N, current best R : 0.9 HOT 1
- Trouble Installing, sample virtual environment config? HOT 7
- How to install configuration and generate an interactive platform? HOT 1
- Defining custom gaussian function HOT 3
- Ignoring errors... HOT 1
- adjusting best R or custom best R HOT 1
- how to run dso multiple times in a loop HOT 2
- How can parallel computing improve speed in a single-task scenario? HOT 1
- Installation error HOT 3
- about putting constraints HOT 2
- [Feature Request] Is it possiable to specify assertion on the expression to generate?
- The gp meld method in sklearn interface
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 deep-symbolic-optimization.