Git Product home page Git Product logo

Comments (4)

brendenpetersen avatar brendenpetersen commented on September 24, 2024

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.

sambatra avatar sambatra commented on September 24, 2024

Hi @brendenpetersen

Many thanks for you help. I will experiment a bit.

from deep-symbolic-optimization.

sambatra avatar sambatra commented on September 24, 2024

Hi @brendenpetersen

It works pretty well, thanks!...I will try the alternative you suggested.

from deep-symbolic-optimization.

brendenpetersen avatar brendenpetersen commented on September 24, 2024

Wonderful! Stay tuned for an update to the code soon.

from deep-symbolic-optimization.

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.