@@ -13,6 +13,7 @@ cloudFg = CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
13
13
IncrementalInference. decodePackedType,
14
14
IncrementalInference. rebuildFactorMetadata!,
15
15
solverParams= SolverParams ())
16
+ # cloudFg = GraphsDFG{SolverParams}(params=SolverParams())
16
17
clearSession!! (cloudFg)
17
18
# cloudFg = initfg()
18
19
45
46
46
47
# Right, let's copy it into local memory for solving...
47
48
localFg = GraphsDFG {SolverParams} (params= SolverParams ())
48
- DistributedFactorGraphs. _copyIntoGraph! (cloudFg, localFg, union (getVariableIds (fg ), getFactorIds (fg )), true )
49
+ DistributedFactorGraphs. _copyIntoGraph! (cloudFg, localFg, union (getVariableIds (cloudFg ), getFactorIds (cloudFg )), true )
49
50
# Some checks
50
- @test getVariableIds (localFg) == getVariableIds (cloudFg)
51
- @test getFactorIds (localFg) == getFactorIds (cloudFg)
51
+ @test symdiff ( getVariableIds (localFg), getVariableIds (cloudFg)) == []
52
+ @test symdiff ( getFactorIds (localFg), getFactorIds (cloudFg)) == []
52
53
@test isFullyConnected (localFg)
53
54
# Show it
54
55
toDotFile (localFg, " /tmp/localfg.dot" )
@@ -58,6 +59,11 @@ toDotFile(localFg, "/tmp/localfg.dot")
58
59
batchSolve! (localFg, drawpdf= true , show= true )
59
60
# Erm, whut? Error = mcmcIterationIDs -- unaccounted variables
60
61
62
+ # Trying new method.
63
+ tree, smtasks = batchSolve! (localFg, treeinit= true , drawpdf= true , show= true ,
64
+ returntasks= true , limititers= 50 ,
65
+ upsolve= true , downsolve= true )
66
+
61
67
# ### WIP and general debugging
62
68
63
69
# Testing with GenericMarginal
0 commit comments