problog examples fix
This commit is contained in:
parent
f46000cd11
commit
9ee83ddf6c
@ -6,7 +6,7 @@
|
|||||||
% $Id: graph.pl 4875 2010-10-05 15:28:35Z theo $
|
% $Id: graph.pl 4875 2010-10-05 15:28:35Z theo $
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
:- use_module('../problog').
|
:- use_module(library(problog)).
|
||||||
|
|
||||||
%%%%
|
%%%%
|
||||||
% background knowledge
|
% background knowledge
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
% $Id: graph_tabled.pl 4875 2010-10-05 15:28:35Z theo $
|
% $Id: graph_tabled.pl 4875 2010-10-05 15:28:35Z theo $
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
:- use_module('../problog').
|
:- use_module(library(problog)).
|
||||||
|
|
||||||
% New trie method ensures Probibilistic Cycle Handling needed for tabling that handles loops
|
% New trie method ensures Probibilistic Cycle Handling needed for tabling that handles loops
|
||||||
:- set_problog_flag(use_db_trie, true).
|
:- set_problog_flag(use_db_trie, true).
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
% will run 20 iterations of learning with default settings
|
% will run 20 iterations of learning with default settings
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
:- use_module('../problog').
|
:- use_module(library(problog)).
|
||||||
:- use_module('../problog_learning').
|
:- use_module(library(problog_learning)).
|
||||||
|
|
||||||
%%%%
|
%%%%
|
||||||
% background knowledge
|
% background knowledge
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
% $Id: office.pl 4970 2010-10-21 08:47:36Z bernd $
|
% $Id: office.pl 4970 2010-10-21 08:47:36Z bernd $
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
:- use_module('../problog').
|
:- use_module(library(problog)).
|
||||||
|
|
||||||
(W,gaussian(2,1)) :: width(W).
|
(W,gaussian(2,1)) :: width(W).
|
||||||
(L,gaussian(9,3)) :: length(L).
|
(L,gaussian(9,3)) :: length(L).
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
% The viral marketing example consists of a social network of friend relations. You have to decide which persons to market. Sending marketing has a cost of 2, but might cause people to buy your product, giving you a profit of 5. When someone buys the product, it becomes more likely that his friends also buy the product.
|
% The viral marketing example consists of a social network of friend relations. You have to decide which persons to market. Sending marketing has a cost of 2, but might cause people to buy your product, giving you a profit of 5. When someone buys the product, it becomes more likely that his friends also buy the product.
|
||||||
|
|
||||||
:- use_module('../dtproblog').
|
:- use_module(library(dtproblog)).
|
||||||
|
|
||||||
% Decisions
|
% Decisions
|
||||||
? :: marketed(P) :- person(P).
|
? :: marketed(P) :- person(P).
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
% The viral marketing example consists of a social network of friend relations. You have to decido which persons to market. Sending marketing has a cost of 2, but might cause people to buy your product, giving you a profit of 5. When someone buys the product, it becomes more likely that his friends also buy the product.
|
% The viral marketing example consists of a social network of friend relations. You have to decido which persons to market. Sending marketing has a cost of 2, but might cause people to buy your product, giving you a profit of 5. When someone buys the product, it becomes more likely that his friends also buy the product.
|
||||||
|
|
||||||
:- use_module('../dtproblog').
|
:- use_module(library(dtproblog)).
|
||||||
|
|
||||||
% Decisions
|
% Decisions
|
||||||
? :: marketed(P) :- person(P).
|
? :: marketed(P) :- person(P).
|
||||||
|
Reference in New Issue
Block a user