Giter Site home page Giter Site logo

Comments (3)

sbadredd avatar sbadredd commented on May 26, 2024

Hi @mpourvali, thank you for the feedback!

define variables for which in each batch they might be empty?

This is the main challenge, right?

I should add support by ltn for cases where a variable is empty. For example, Forall(x_empty,P(x_empty)) would be accepted and would return 1. Exists(x_empty,P(x_empty)) would return 0.

Then you could write the same axioms at every batch, even if some are not used. Would that be a good solution?

from logictensornetworks.

mpourvali avatar mpourvali commented on May 26, 2024

Hi @sbadredd , thank you for reply!

This is the main challenge, right?

yes, its's the main challenge,

Would that be a good solution?

it sounds a good solution for satisfiability, and then can I know what P(x_empty) would return?
can we initialize variables?

from logictensornetworks.

sbadredd avatar sbadredd commented on May 26, 2024

I expect that P(x_empty) would return an empty tensor. Every formula connected to it, e.g. And(P(x_empty), P(x_nonempty)) would also return an empty tensor. In that scenario the system would not throw exceptions if you initialize a variable with an empty domain

One potential issue is that empty domains can lead to semantical problems (e.g., some axioms for the t-norms and quantifiers not holding anymore). I will discuss this with other collaborators before implementing it

In the meantime, can you consider these temporary solutions?

axioms = []
if tf.not_equal(tf.size(x.tensor), 0):               # Only if the tensor of variable x is not empty...
    axioms.append(...)                                      # ... add the axiom about x

from logictensornetworks.

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.