You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> gobn = GOBN()
>>> edge_reqs = {'A':['B','C'],'B':['D']} # require that A->B, A->C, and B->D
>>> ind_reqs = [('A','D'),(('A','B'),'D','C')] # require that A _|_ D and A,B _|_ D | C
>>> nonedge_reqs = {'B':['C']} # disallow that B->C
>>> gobn.set_constraints(edge_reqs, ind_reqs, nonedge_reqs)
>>> gobn.learn(data) # Call the GOBNILP solver
So we can maybe provide a <QDForest>.to_pygobn() method that would return a tuple edge_reqs, ind_reqs, and nonedge_reqs. The user would therefore do:
fromqdscreeenimportqdeterscreenfrompyGOBNimportGOBN# screen for (quasi-)determinism and get the contraints to pass to GOBNqd_forest=qdeterscreen(data[, options])
reqs=qd_forest.to_pygobn()
# run GOBN with these constraintsgobn=GOBN()
gobn.set_constraints(*reqs)
gobn.learn(data)
The text was updated successfully, but these errors were encountered:
From PyGOBN doc:
So we can maybe provide a
<QDForest>.to_pygobn()
method that would return a tupleedge_reqs
,ind_reqs
, andnonedge_reqs
. The user would therefore do:The text was updated successfully, but these errors were encountered: