GithubHelp home page GithubHelp logo

Comments (8)

oschulte avatar oschulte commented on May 28, 2024

Examples 👍

  • BIF_MovieLens_std
  • in unielwin, given RA = T, Capability should be n/a with almost probability 1

from factorbase.

woodsouths avatar woodsouths commented on May 28, 2024

the old xml file of toyexample
old_xml
and the new xml file of toyexample
new_xml
the new version misses a edge from RA to Salary. @oschulte

from factorbase.

oschulte avatar oschulte commented on May 28, 2024

Thanks runnan. This is because we are currently failing to add these edges by hand (from Rnodes to 2Nodes). Need to check why that part of the SQL script is not being called. Otherwise the edges are the same which is reassuring.

from factorbase.

oschulte avatar oschulte commented on May 28, 2024

@woodsouths @rmar3a So the problem seems to be that in model-manager.sql to build the SchemaEdges table, we need to refer to lattice_membership.member, not rnid. I hope this will fix Runnan's issue. As for the general logic, here's the behaviour I think we need.

  1. If link analysis is off, then insert the Schema_Edges pairs into Path_Bayes_Nets for the final result after structure learning and before parameter learning. The reason is that in this case, the Bayes net contains no rnodes during learning. This is similar to the current query except we insert into Required_Edges not Path_Bayes_Nets. We can check the Java code for this case.

  2. If link analysis is on, then insert the Schema_Edges pairs into Path_Required_Edges before learning. This will make them available for learning. Again We can check the Java code for this case.

from factorbase.

rmar3a avatar rmar3a commented on May 28, 2024

So I did a bit of investigating to see how/why we dropped the values in the rnid column and it happened/is explained in this commit:

https://github.com/sfu-cl-lab/FactorBase/commit/dfe5e8ca821b1d092b487be1f696316099fd3e11

Also this issue is related to this pull request I made before:

https://github.com/sfu-cl-lab/FactorBase/pull/68

I will attempt to fix both of this issues in a future pull request.

from factorbase.

oschulte avatar oschulte commented on May 28, 2024

Sounds good. I think we can resolve this in 15 min. At least for the schema edges.

from factorbase.

oschulte avatar oschulte commented on May 28, 2024

So if link analysis is off, schema edges should be added after structure learning and before parameter learning.

from factorbase.

woodsouths avatar woodsouths commented on May 28, 2024

Eliminate where clause from the creating the schemaEdges table

When link analysis is on:

  • Insert edges from schemaEdges into Path_Required_Edges before structure learning;

When link analysis is off:

  • Insert edges from schemaEdges into Path_BayesNets after structure learning (together with Progagate ContextEdges);

from factorbase.

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.