ML-KULeuven / problog

ProbLog is a Probabilistic Logic Programming Language for logic programs with probabilities.
https://dtai.cs.kuleuven.be/problog/
298 stars 34 forks source link

Custom weights for specific nodes #31

Closed VincentDerk closed 4 years ago

VincentDerk commented 4 years ago

Before, the custom weights passed by a user had to be a dictionary of type {Term : weight}, this was internally converted to {node_id : weight}. Now one can provide a dictionary of both node_id and Terms.

codecov-io commented 4 years ago

Codecov Report

Merging #31 into master will increase coverage by 0.12%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   53.74%   53.86%   +0.12%     
==========================================
  Files          64       64              
  Lines       16715    16722       +7     
==========================================
+ Hits         8983     9007      +24     
+ Misses       7732     7715      -17
Impacted Files Coverage Δ
problog/formula.py 59.3% <100%> (+0.19%) :arrow_up:
problog/test/test_evaluator.py 86.36% <100%> (+0.99%) :arrow_up:
problog/tasks/sample.py 39.15% <0%> (+3.12%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5910d30...2e3c997. Read the comment docs.