Comments (2)
Hi. Thanks for your interests in our work!
Congrats, seems you are using the interpret_rule
function correctly. Each line outputted by function interpret_rule
is a compact representations for the learned rules. As we visualized in Figure 7 of the paper, each rule is a relation chain with logical functions attached to each node in the chain.
Therefore, in each line you can see a "backbone" formed by --
, which represent that "relation chain". Lets take the 4-th line as example which has a higher prob. There X--daughter^T--nephew
is such a relation chain, with X being the first variable in the chain. If the relation is marked with ^T
, it means a reversed relation. More precisely, this line's chain can be written as
All (AND ...)
components then mean logical functions applied to each node. They are written in a recursive manner, following the same format to the main chain. If multiple exists for the same node, as in the last line, then these two functions are applied to the same node. This usually happens when a relation link in the main chain is an identity function, e.g.,
Logical operators such as And
(this is different from capitalized AND
!) and Not
mean what they are supposed to mean. For example, (AND Not(wife))
means a function
Please note that, LERP is in design a continuous model, with extensive mixed operators. This is why the confidence score are uniformly low, which basically means that the LERP also allocates weights to other possibilities. You might observe higher scores if the model size is small, and lower scores if the model size is large. Each interpreted rule is actually greedily selected, so they cannot fully represent the computation of the actual rule and is only a maximal approximate. Some interpreted rules are not totally right (like the 4th line, where a daughter actually cannot be a nephew), but the model might be mixing multiple things and results in such a interpretation, or simply trying to be compatible with annotation randomness.
The Bridged_LerpModel
is actually more complex, mainly designed for representing more complicated rules in a compact size. This is why I have not written an interpretation function for it. However you are free to manually inspect its weights or propose a good solution for it!
from lerp.
Thank you!!!
It was very helpful
from lerp.
Related Issues (5)
- The repository under construction HOT 1
- Parameters for reproducing experimental results HOT 1
- 执行命令“ bash scripts/run_wn18rr.sh /log 0”,后报错:Traceback (most recent call last): File "/root/LERP-main/graph_completion/src/eval/evaluate.py", line 89, in <module> evaluate() File "/root/LERP-main/graph_completion/src/eval/evaluate.py", line 33, in evaluate lines = [l.strip().split(",") for l in open(option.preds).readlines()] FileNotFoundError: [Errno 2] No such file or directory: './log/WN18RR/test_predictions.txt' HOT 2
- On data sets with many relationships, does the memory usage of the model increase exponentially?
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 lerp.