Giter VIP home page Giter VIP logo

Comments (3)

dkamm avatar dkamm commented on June 20, 2024

I think the tricky part is generating a new dataset with your dsl extensions in the same manner that the paper authors did (which I'm assuming you'd want to do). You would have to add constraint propagation logic for your new functions to constraint.py. Recall the reason they did that is to keep invalid program/inputs out of their dataset- for instance, SCAN1L(LPLUS, [255,255])=510 would be invalid if the output range is [-256,256].

Unfortunately, I don't think there's a good way to do this unless you keep your extensions really simple. For example, if you wanted to add fibonacci and the output range is [-256,256], then the input range would be [0,13] because the fib(13)=233 and fib(14)=377. You would have to clip the input range to the largest n such that fib(n) is in the output range, maybe by precomputing the first 13 fibonacci numbers and using that to check. One of the benefits of keeping the dsl simple is that it keeps the constraint propagation tractable.

Good luck, let me know if you had any other ideas in mind

from deepcoder.

dbl001 avatar dbl001 commented on June 20, 2024

from deepcoder.

dkamm avatar dkamm commented on June 20, 2024

If you allow floating point numbers, you'll have an infinite number of possible input/output values and you'll have to change the embedding layer of the neural network. There are interesting ideas and I encourage you to try them out on your own fork- I want to keep master as a faithful implementation of the paper so I'm not going to add any extensions here.

from deepcoder.

Related Issues (11)

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.