2ecffad5e9ca13a3af6a5ff9257c14d86d0115b5
[libdai.git] / ChangeLog
1 git HEAD
2 --------
3 * Disabled debugging output in src/cobwebgraph.cpp to fix compilation issue under OSX
4 * [Lee C Baker] patch in include/dai/enum.h to fix compilation issues on OSX related to std::wistream and std::wostream (another workaround would be to specify -std=c++11)
5 * [Charles Vaske] Various improvements to EM code, including interface changes
6 * Fixed regression in SWIG interface caused by new build system (thanks to Benjamin Mumm for reporting this)
7 * Added 'inclusive' argument to DAG::ancestors() and DAG::descendants()
8 * [Julien Rebetez] added FactorGraph::printDot() to SWIG interface
9 * Build system: optional compilation targets are now set in include/dai/dai_config.h instead of Makefile.ALL
10 * Workaround for bug in Boost Graph Library version 1.54 ("The graph may not contain an edge with negative weight") by not using Prim's minimum spanning tree algorithm anymore
11 * Removed conversion script FastInf->libDAI because it is buggy (uses wrong permutation of factor entries)
12 * Extended SWIG python interface (inspired by Kyle Ellrott): inference is possible in Python now!
13 * Added toString() formatting functions to the classes that had an output streaming operator<<
14 * Replaced all occurrences of std::size_t by size_t to avoid SWIG problems
15 * Fixed division-by-zero issue in pow() which caused problems for GLC+ with sparse factors
16 * Fixed bugs in unit test prob_test.cpp: replaced all occurences of
17 BOOST_CHECK_CLOSE(...,(Real)0.0,tol) with BOOST_CHECK_SMALL(...,tol)
18 * Merged Generalized Loop Correction code kindly provided by Siamak Ravanbakhsh
19
20
21 libDAI-0.3.1 (2012-09-17)
22 -------------------------
23
24 Miscellaneous improvements:
25 * Full 64-bit support on all supported platforms (Linux, OSX, Windows)
26 * Added special MatLab interface for junction tree algorithm (dai_jtree)
27 * Optimized ClusterGraph( const FactorGraph&, bool) constructor
28
29 Build system improvements:
30 * Added Makefile.WINDOWS64, kindly provided by Lin Ming
31 * [Arman Aksoy] Added Makefile.MACOSX64
32 * Added VC10 build files, kindly provided by Sameh Khamis
33
34 Bug fixes:
35 * Fixed bug (found by Sameh Khamis): define NAN (Windows)
36 * Fixed bug (found by Sameh Khamis): add some necessary casts of size_t to BigInt (Windows)
37 * Fixed bug (found by Yan): replaced GNU extension __PRETTY_FUNCTION__ by __FUNCTION__ (Visual Studio) or __func__ (other compilers)
38 * Fixed bug (found by Andy Mueller): added GMP library invocations to swig Makefile
39 * Fixed bug (found by cax): when building MatLab MEX files, GMP/MPIR libraries were not linked
40 * Fixed bug in findMaximum (it only considered a single connected component of the factor graph)
41 * [Benjamin Piwowarski] Renamed "foreach" macro into "bforeach" to avoid conflicts with newer Boost library versions
42 * Fixed "typename" bug in src/alldai.cpp which resulted in FTBFS with older g++ compilers
43 * Fixed memory leak in alldai.cpp and removed the function builtinInfAlgs()
44 * Fixed memory leak in CBP::run()
45 * Fixed typo in Priya's name
46
47
48 libDAI-0.3.0 (2011-07-12)
49 -------------------------
50
51 New license:
52 * Changed license from GPL v2+ to FreeBSD (BSD 2-clause)
53
54 Miscellaneous improvements:
55 * Improved Exception class
56 (it now stores more information and doesn't print to stderr by default)
57 * Added builtinInfAlgs() and builtinInfAlgNames()
58
59 Bug fixes:
60 * [Laurens van der Maaten] src/matlab/dai.cpp now correctly handles missing logZ()
61 and maxDiff() implementations
62 * Now uses GMP big integer type to represent linear states and the number of
63 states of VarSets (in some cases). This fixes a bug Jerome Maye and Priya
64 found in the State class. Unfortunately, the supplied Makefile.WINDOWS now
65 no longer works out-of-the-box.
66 * Fixed numerical issues in MF, FBP and TRWBP (discovered in sparse branch)
67 * Fixed bug in findMaximum(): inconsistent max-beliefs are now detected,
68 instead of returning a MAP state with zero joint probability
69 (reported by Hynek Urban)
70 * Fixed a Boost-related bug in src/util.cpp (reported by Avneesh Saluja)
71 (the random seed needs to be an unsigned int on some platforms)
72 * Fixed two bugs in examples/example_sprinkler_gibbs (reported by Priya)
73 * Fixed bug in tokenizeString() and Evidence::addEvidenceTabFile()
74 (a tab character at the end of a line was incorrectly discarded - bug reported by Priya)
75 * Replaced all Name members by name() virtual functions and removed global variable DAINames
76 (this fixes a bug in matlab/dai.cpp reported by Thomas Mensink)
77
78
79 libDAI-0.2.7 (2010-08-19)
80 -------------------------
81
82 * Removed interfaces deprecated in 0.2.6.
83 * Fixed a bug in JTree::findMaximum() (reported by zhengyun84 and Dhruv Batra):
84 if one or more variables had a MAP belief with more than one maximum, an
85 incorrect MAP state could result.
86
87
88 libDAI-0.2.6 (2010-08-05)
89 -------------------------
90
91 New features:
92 * Added decimation algorithm DecMAP for MAP inference (decmap.h/cpp).
93 * Added source code for one of the winning solvers of the
94 UAI 2010 Approximate Inference Challenge (examples/uai2010-aie-solver.cpp).
95 * Added support for reading files in the UAI Approximate Inference Challenge
96 format, supporting both the 2006/2008 evidence file format and the 2010
97 evidence file format (io.h/cpp).
98
99 Miscellaneous improvements:
100 * 'maxtime' property added to various algorithms (BP, Gibbs, HAK, TreeEP)
101 for setting an upper limit on execution time.
102 * 'maxmem' property added to JTree for setting an upper limit on memory usage.
103 * SmallSet:
104 - Added SmallSet::erase( const T& t ).
105 * VarSet:
106 - nrStates() now returns a long double instead of a size_t.
107 * Permute:
108 - Added ranges() accessor.
109 - Added inverse() method.
110 - Added optional reverse argument to Permute( const std::vector<Var>& ) constructor.
111 * Factor:
112 - Added createFactorDelta( const VarSet& vs, size_t state ).
113 * ClusterGraph:
114 - Added ClusterGraph(const FactorGraph& fg, bool onlyMaximal) constructor.
115 - Added findCluster( const VarSet& cl ).
116 - Added elimVar( size_t i ).
117 - Added 'maxStates' argument to VarElim( EliminationChoice f, size_t maxStates=0 ).
118 * FactorGraph:
119 - Added isMaximal(size_t).
120 - Added maximalFactor(size_t).
121 - Added FactorGraph::logScore( const std::vector<size_t>& statevec ).
122 * Gibbs:
123 - Added 'restart' property.
124 - Added Gibbs::findMaximum() for MAP inference.
125 * HAK:
126 - Optimized region graph construction for HAK/GBP with clusters=BETHE.
127 * examples/examples_imagesegmentation.cpp:
128 - [Peter Rockett] Improved Makefiles for image segmentation example.
129 - Added build flag to specify the CImg version.
130 * util.h/cpp:
131 - Added fromString<>( const std::string& x ).
132
133 Interface changes (the old interface is marked obsolete and will be removed in the next release):
134 * Added InfAlg::setMaxIter(size_t) for setting the maximum number of iterations.
135 * Deprecated Graph::Neighbor, BipartiteGraph::Neighbor and DAG::Neighbor
136 and replaced them by a globally defined Neighbor structure
137 * Deprecated Graph::Neighbors, BipartiteGraph::Neighbors and DAG::Neighbors
138 and replaced them by a globally defined Neighbors type
139 * Deprecated Graph::Edge, BipartiteGraph::Edge and DAG::Edge
140 and replaced them by a globally defined Edge type
141 * Renamed 'iters' property of Gibbs algorithm into 'maxiter'.
142 * ClusterGraph::findVar( const Var& n ) no longer throws an exception if the
143 variable is not found.
144 * Deprecated 'void tokenizeString( const string&, vector<string>&, const string& )'
145 and replaced it with an improved version
146 'vector<string> tokenizeString( const string&, bool, const string& )'
147 * Removed interfaces deprecated in 0.2.5.
148
149 Bug fixes:
150 * Fixed a problem with isnan() on FreeBSD; it is now in the dai namespace.
151 * Workaround for older g++ compilers (e.g. version 4.0.0 on Darwin 9.8.0)
152 which have problems when comparing const_reverse_iterator with
153 reverse_iterator.
154 * [Matt Dunham] Fixed a bug in Factors2mx in src/matlab/matlab.cpp
155 (segfault if factors depending on 0 variables were passed to MatLab)
156
157
158 libDAI-0.2.5 (2010-05-09)
159 -------------------------
160
161 New features:
162 * Added unit tests for var, smallset, varset, graph, dag, bipgraph,
163 weightedgraph, enum, util, exceptions, properties, index, prob,
164 factor, factorgraph, clustergraph, regiongraph, daialg, alldai
165 * [Ofer Meshi] Added a script for converting from FastInf to libDAI format
166 * Added utils/uai2fg, a utility to convert the UAI inference competition file
167 formats to the libDAI factor graph file format
168 * Added dag.h/cpp, an implementation of Directed Acyclic Graphs
169 * Added examples/example_imagesegmentation
170
171 Miscellaneous improvements:
172 * TRWBP:
173 - Added initialization of TRWBP weights by sampling spanning trees
174 * MF:
175 - Added an "init" option that allows to initialize randomly
176 - Added an "updates" option that allows to choose between standard
177 mean field and "hard-spin" mean field
178 * MR:
179 - rewrote response propagation implementation with help of BBP
180 - now uses GraphAL to represent the Markov graph
181 - miscellaneous smaller cleanups
182 * TreeEP:
183 - Now also supports disconnected factor graphs
184 * JTree:
185 - Now also supports disconnected factor graphs
186 * ExactInf:
187 - Added findMaximum()
188 * RegionGraph:
189 - Added error checking code
190 - Changed the way a RegionGraph is streamed to an std::ostream.
191 * ClusterGraph:
192 - Added nrVars() method
193 - Added var( size_t ) method
194 - Added cluster( size_t ) method
195 * FactorGraph:
196 - clamped() now contains a delta factor for the clamped variable
197 - Added MarkovGraph()
198 * TFactor:
199 - Added takeAbs()
200 - Added takeExp()
201 - Added takeLog( bool )
202 - Added operator-() const
203 - Added sumAbs() const
204 - Added operator==( const TFactor<T> &y )
205 - Added get(size_t), set(size_t,T)
206 * TProb:
207 - Added operator==( const TProb<T> &q )
208 - accumulate() now also applies op2 to init
209 - operator/= (T x) now yields 0 when dividing by 0
210 - Added resize(size_t)
211 - Added get(size_t) and set(size_t,T)
212 - Changed format of TProb<T> when streamed to an ostream
213 * multifor:
214 - Added reset()
215 * PropertySet:
216 - Added size()
217 - Added clear()
218 - Added erase()
219 * util.h/cpp:
220 - Added std::string toString( const T& x )
221 * weightedgraph.h/cpp:
222 - Added option to MaxSpanningTree and MinSpanningTree for
223 choosing between Prim's algorithm and Kruskal's algorithm
224 - Better error checking in RootedTree constructor
225 - Added GraphEL::GraphEL( const GraphAL& G ) constructor
226 * BipartiteGraph:
227 - Added hasEdge()
228 - Added findNb1()
229 - Added findNb2()
230 - Added nb1Set()
231 - Added nb2Set()
232 - Added operator==( const BipartiteGraph& )
233 - Added BipartiteGraph( size_t nr1, size_t nr2 ) constructor
234 - Added operator<<( std::ostream&, const BipartiteGraph& )
235 * GraphAL:
236 - Added hasEdge(size_t,size_t)
237 - Added nbSet(size_t)
238 - Added operator==( const GraphAL& )
239 - Added operator<<( std::ostream&, const GraphAL& )
240 * SmallSet:
241 - Added insert( const T& t ) method
242 * Improved regression test
243 * Made all "verbose" properties optional
244 * utils/createfg now has a new factor type ('ISINGUNIFORM') and the old
245 'ISING' factor type has been renamed to 'ISINGGAUSS'
246 * tests/testdai option "marginals" now has five possible values: NONE
247 outputs no marginals, VAR only variable marginals, FAC only factor
248 marginals, VARFAC both types of marginals, and ALL outputs all
249 marginals calculated by the algorithm.
250 * Compressed Makefile
251
252 Interface changes (the old interface is marked obsolete and will be removed in the next release):
253 * Removed RandomDRegularGraph(), please use createGraphRegular() instead
254 * TreeEP:
255 - Changed construct( const RootedTree& ) into
256 construct( const FactorGraph&, const RootedTree& )
257 * JTree:
258 - Changed construct( const std::vector<VarSet>&, bool ) into
259 construct( const FactorGraph&, const std::vector<VarSet>&, bool )
260 - Changed GenerateJT( const std::vector<VarSet> & )
261 into GenerateJT( const FactorGraph &, const std::vector<VarSet> & )
262 * RegionGraph:
263 - Made (previously public) members G, ORs, IRs and fac2OR protected and
264 added DAG() accessor which returns a reference to the region graph DAG
265 structure (currently implemented as a BipartiteGraph).
266 - Renamed calcCountingNumbers() into calcCVMCountingNumbers() and made it
267 protected, because exposing it to the world serves no purpose.
268 - Removed partial constructor RegionGraph( const FactorGraph& fg )
269 - Made RecomputeORs(), RecomputeORs( const VarSet& ) and RecomputeOR( size_t )
270 protected and renamed them by changing the "Recompute" into "recompute",
271 because exposing them to the world serves no purpose.
272 * ClusterGraph:
273 - Made (previously public) members G, vars and clusters private and added
274 bipGraph(), vars() and clusters() methods which offer read-only access
275 to these members.
276 - Deprecated toVector()
277 - Renamed size() into nrClusters()
278 * FactorGraph:
279 - Renamed Cliques() into maximalFactorDomains() and made it faster
280 - findVars( const VarSet& ) now returns a SmallSet<size_t>
281 and its argument now has a const-qualifier (which fixes a small bug).
282 - Made (previously public) member G private and added the
283 bipGraph() method, which offers read-only access to it.
284 - Deprecated the iterator interface:
285 o FactorGraph::iterator typedef
286 o FactorGraph::const_iterator typedef
287 o FactorGraph::begin() members
288 o FactorGraph::end() members
289 - Deprecated factor(size_t) which offered write access to a factor
290 because using this functionality in the descendant RegionGraph is dangerous,
291 as the outer regions are not automatically recomputed.
292 * TFactor:
293 - Renamed states() into nrStates()
294 - Added get(size_t) and set(size_t,T) operators;
295 get() is equivalent to "operator[](size_t) const" and set() should
296 be used instead of the non-const operator[], which has been deprecated
297 * TProb:
298 - Deprecated TProb( TIterator begin, TIterator end, size_t sizeHint=0 )
299 constructor: the sizeHint argument no longer defaults to 0
300 - Deprecated accumulate( T init, binOp op1, unOp op2 );
301 instead, accumulateSum( T init, unOp op ) and
302 accumulateMax( T init, unOp op, bool minimize ) should be used.
303 - Deprecated TProb::NormType and TProb::DistType;
304 ProbNormType and ProbDistType should be used instead.
305 - Fixed bug by renaming operator<=() to operator<()
306 - Added get(size_t) and set(size_t,T) operators;
307 get() is equivalent to "operator[](size_t) const" and set() should
308 be used instead of the non-const operator[], which has been deprecated
309 * PropertySet:
310 - Renamed Set() -> set()
311 - Renamed Get() -> get()
312 - Renamed GetAs<T>() -> getAs<T>()
313 - Renamed ConvertTo<T>() -> convertTo<T>()
314 * util.h/cpp:
315 - Removed max( const std::vector<Real> &v )
316 * weightedgraph.h/cpp:
317 - Renamed MaxSpanningTreePrims into MaxSpanningTree
318 - Renamed MinSpanningTreePrims into MinSpanningTree
319 - The vertices in DEdge and UEdge are now named "first" and "second"
320 for compatibility with a std::pair<size_t,size_t>
321 * BipartiteGraph:
322 - delta1() and delta2() now return a SmallSet<size_t> instead of a vector<size_t>
323 * SmallSet:
324 - The sizeHint argument of the iterator constructor
325 SmallSet::SmallSet( TIterator begin, TIterator end, size_t sizeHint=0 )
326 no longer has a default value in order to avoid confusion with the
327 SmallSet::SmallSet( const T &t1, const T &t2 )
328 constructor.
329
330 Bug fixes:
331 * [Stefano Pellegrini] Fixed bug in JTree::findMaximum()
332 * [Stefano Pellegrini] Fixed bug in BP[logdomain=1,inference=MAXPROD]
333 * Fixed some bugs in the MatLab interface build system
334 * Fixed a bug in utils/fginfo.cpp
335 * Fixed a bug in JTree::findMaximum() and simplified the code
336 * Fixed bug in BBPCostFunction::operator=() which prevented the desired
337 assignment from happening
338 * RegionGraph::WriteToFile( const char* ), RegionGraph::ReadFromFile( const char * )
339 and RegionGraph::printDot( std::ostream& ) incorrectly called their respective
340 FactorGraph ancestor methods; this has been corrected by letting them throw a
341 NOT_IMPLEMENTED exception.
342 * Fixed bug in FactorGraph::clone()
343 * Fixed bug in min( const TFactor<T> &, const TFactor<T> & )
344 * Fixed bug in max( const TFactor<T> &, const TFactor<T> & )
345 * Fixed bug by renaming TProb<T>::operator<=() to TProb<T>::operator<()
346 * Fixed bug in PropertySet::setAsString<T>()
347 * Fixed a bug in rnd_seed()
348 * BipartiteGraph:
349 - Fixed bug in eraseNode1()
350 - Fixed bug in eraseNode2()
351 - Fixed bug in isTree()
352 * GraphAL:
353 - Fixed bug in nrEdges()
354 - Fixed bug in addEdge()
355 - Fixed bug in isTree()
356 - Fixed bug in eraseNode()
357 - Fixed bug in printDot()
358 * Fixed bug in createGraphGrid3D()
359 * Fixed bug in createGraphRegular()
360
361
362 libDAI-0.2.4 (2010-02-11)
363 -------------------------
364
365 New features:
366 * Implemented Tree-Reweighted BP
367 * [Frederik Eaton] Implemented Fractional Belief Propagation
368
369 Miscellaneous improvements:
370 * Improved documentation
371 * [Frederik Eaton] Added constructors for BBPCostFunction
372 * [Frederik Eaton] Added accessor/mutator for the elements of a SmallSet<>
373 * [Frederik Eaton] Added unary minus to TProb<>
374 * [Frederik Eaton] Added Hellinger distance to TProb<>::DistType
375 * [Frederik Eaton] Two small patches for src/jtree.cpp and utils/createfg.cpp
376 * tests/testdai option "marginals" now has three possible values: NONE
377 outputs no marginals, VAR only variable marginals, and ALL outputs all
378 marginals calculated by the algorithm.
379 * Strengthened convergence criteria of various algorithms
380 * Added GraphAL, an adjacency list implementation for graphs,
381 similar to (but simpler than) BipartiteGraph
382 * Added some functionality to create various standard factors
383 (the functions whose names start with "createFactor")
384 * Added examples example_sprinkler_gibbs and example_sprinkler_em
385 * Implemented various heuristics for choosing a variable elimination sequence
386 in JTree
387 * Added BETHE method for GBP/HAK cluster choice
388 * Made alias support official part of the library
389
390 Build system:
391 * Moved platform independent build options into Makefile.ALL
392 * Windows platform now needs Boost 1.37 or higher
393
394 Code cleanup:
395 * Cleaned up utils/createfg and tests/testdai
396 * Cleanup of some duplicate code in BP, FBP, TRWBP
397
398 Interface changes (the old interface is marked obsolete and will be removed in the next release):
399 * Removed obsolete/deprecated stuff
400 * Renamed Graph into GraphEL (for Graph, implemented as Edge List)
401 * Renamed some functions of BipartiteGraph:
402 add1() -> addNode1()
403 erase1() -> eraseNode1()
404 nr1() -> nrNodes1()
405 add2() -> addNode2()
406 erase2() -> eraseNode2()
407 nr2() -> nrNodes2()
408 * Renamed some functions in ClusterGraph:
409 ClusterGraph::eliminationCost() -> ::eliminationCost_MinFill()
410 ClusterGraph::VarElim() -> ClusterGraph::VarElim( sequentialVariableElimination( ElimSeq ) )
411 ClusterGraph::VarElim_MinFill() -> ClusterGraph::VarElim( greedyVariableElimination( eliminationCost_MinFill ) )
412 * Changed interface of one RegionGraph constructor
413 * Renamed "Clamped BP" into "Conditioned BP"
414
415 Bug fixes:
416 * Fixed regression in scripts/regenerate-properties (now all errors are
417 gathered before throwing the exception, as used to be the case)
418 * Fixed FTBFS errors on MACOSX (thanks to Sebastian Riedel for reporting this bug)
419 * [Alexander Schwing] Fixed error in BP that occured with damping
420 and using log-domain updates
421 * Fixed bug in HAK for trivial region graphs (with only one outer region
422 and no inner regions), reported by Alejandro Lage.
423 * Fixed long-standing bug in TreeEP (now, within-loop propagation optimization works)
424
425
426 libDAI-0.2.3 (2009-11-16)
427 -------------------------
428
429 New features:
430 * Complete doxygen documentation (although more detailed documentation still
431 has to be written)
432 * [Charles Vaske] Added parameter learning for conditional probabilities by
433 Expectation Maximization
434 * [Patrick Pletscher] Added SWIG wrapper code for experimental python and
435 octave interfaces
436 * Added Max-Product functionality to JTree
437 * [Frederik Eaton] Added Back-Belief-Propagation
438 * [Frederik Eaton] Added approximate inference method "Clamped Belief Propagation"
439 * [Frederik Eaton] Added approximate inference method "Gibbs sampling"
440
441 Code cleanup:
442 * Updated copyright headers
443 * Cleaned up error handling by introducing the DAI_THROWE macro
444 * Introduced DAI_DEBASSERT macro to abbreviate a common pattern
445 * Replaced the standard assert() macro by DAI_ASSERT, which throws a
446 dai::Exception and is even active if NDEBUG is defined
447 * Removed all the virtual default constructors *::create(), as they are not used
448 * [Frederik Eaton] Removed unnecessary copy constructors and assignment operators
449 * [Frederik Eaton] Change cout to cerr in warnings and error messages
450
451 Miscellaneous improvements:
452 * BipartiteGraph:
453 - Added eraseEdge( size_t n1, size_t n2 )
454 - [Frederik Eaton] Improved documentation of Neighbor
455 * TProb<T>:
456 - Added divided_by(const TProb<T>&) const
457 - Added constructor TProb<T>( const std::vector<S> &v )
458 - Added size_t draw(), which draws a random index
459 - [Frederik Eaton] Added setUniform()
460 - [Frederik Eaton] Added sumAbs()
461 - [Frederik Eaton] Added argmax()
462 - [Giuseppe Passino] Added begin(), end()
463 * TFactor<T>:
464 - [Giuseppe Passino] Added begin(), end()
465 - [Charles Vaske] Added TFactor( const std::vector<Var> &vars, const std::vector<T> &p ),
466 which reorders variables to canonical ordering before storing the table
467 - Added constructor TFactor<T>( const VarSet &vars, const std::vector<S> &v )
468 - Extended functionality of TFactor<T>::operators +,-,+=,-= to handle different VarSets
469 - Added TFactor<T>::maxMarginal (similar to marginal but with max instead of sum)
470 * State:
471 - [Giuseppe Passino] Added prefix ++ operator
472 * Permute:
473 - [Charles Vaske] Added constructor in Permute for canonical variable ordering
474 * FactorGraph:
475 - [Frederik Eaton] Added clampVar()
476 - [Frederik Eaton] Added clampFactor()
477 - [Giuseppe Passino] Added begin(), end()
478 * PropertySet:
479 - Added keys(), for getting all keys
480 - [Frederik Eaton] Added default constructor
481 - [Frederik Eaton] Added constructor from string
482 * InfAlg:
483 - Added setProperties(), getProperties() and printProperties()
484 - [Frederik Eaton] Added beliefV(), beliefF()
485 * ExactInf:
486 - Added calcMarginal(const VarSet &)
487 * HAK:
488 - Added "init" parameter to allow for random initialization
489 * BP:
490 - [Giuseppe Passino] Added findMaximum(), which can be used after running
491 max-product BP to construct a global state with maximum probability
492 * JTree:
493 - Added findMaximum(), which can be used after running
494 max-product JTree to construct a global state with maximum probability
495 * MatLab interface:
496 - MEX file dai now also returns variable and factor beliefs
497 - [Sebastian Nowozin] MEX file dai now also optionally returns the MAP state
498 (only for BP and JTree)
499 * README is now created automatically from doxygen documentation
500 * [Frederik Eaton] Added script for automatically generating properties code (used by CBP and BBP)
501 * [Frederik Eaton] Added newInfAlgFromString to alldai.h/cpp
502 * [Frederik Eaton] Added some utility macros (DAI_PV, DAI_DMSG, DAI_IFVERB)
503 and functions (concat(),rnd()) to util.h
504 * Changed output stream operator<< for Var and VarSet
505 * [Frederik Eaton] Improved parsing code in tests/testdai to allow recursive
506 alias substitutions
507 * [Frederik Eaton] Added useful aliases to aliases.conf
508 * [Giuseppe Passino] Optimised maximum-residual BP by using a reversed ordered
509 set instead of the linear search (which can yield enormous speedups - a
510 factor 500 has been measured on a binary Ising grid with 128x128 variables!)
511 * Added debug assertions to Var which check for inconsistent dimensions of
512 variables with the same labels
513 * toc() now returns POSIX system time with maximum accuracy of microseconds
514 * Exception objects now remember their error code
515 * Examples:
516 - Moved example.cpp to examples/
517 - Added examples/example_bipgraph.cpp
518 - Added examples/example_varset.cpp
519 - Added examples/example_sprinkler.cpp
520 - Added examples/example_permute.cpp
521 - Added python and octave ports for examples/example_sprinkler.cpp
522
523 Build system:
524 * Improved Makefile:
525 - Merged Makefile.win and Makefile.shared into Makefile
526 - Macros DAI_VERSION and DAI_DATE have been introduced,
527 in order to store this information in a central place
528 - Introduced CCNODEBUGFLAGS in Makefile
529 - Switched Makefile.win to GNU Make syntax
530 - [Frederik Eaton] Added TAGS, lib targets to Makefile
531 * Compatibility:
532 - [Peter Gober] libDAI can now be built on Cygwin
533 - [Dan Preston] libDAI can now be built on Mac OS X
534 - Changed regression test so that it also works under Windows
535
536 Interface changes (the old interface is marked obsolete and will be removed in the next release):
537 * Var:
538 - Variable labels are now nonnegative (of type size_t)
539 * VarSet:
540 - Replaced calcState() by non-member calcLinearState()
541 - Replaced calcStates() by non-member calcState()
542 * Permute:
543 - Renamed convert_linear_index into convertLinearIndex
544 * TProb<>:
545 - Replaced log0() by log(true)
546 - Replaced takeLog0() by takeLog(true)
547 - Removed hasNonPositives()
548 - Renamed minVal() to min()
549 - Renamed maxVal() to max()
550 - Renamed totalSum() to sum()
551 * TFactor<>:
552 - Replaced log0() by TFactor<T>::log(true)
553 - Removed divided_by, use operator/ instead
554 - Removed divide, use operator/= instead
555 - Removed partSum(const VarSet&), use marginal(const VarSet&,false) instead
556 - Renamed minVal() to min()
557 - Renamed maxVal() to max()
558 - Renamed totalSum() to sum()
559 * FactorGraph:
560 - Changed clamp and clamp interfaces (the variable to be
561 clamped is now indicated by its index, not as a Var)
562 * RegionGraph:
563 - Renamed Check_Counting_Numbers into checkCountingNumbers
564 - Renamed Calc_Counting_Numbers into calcCountingNumbers
565 * Miscellaneous:
566 - Renamed Treewidth(const FactorGraph &) into boundTreewidth(const FactorGraph &)
567 - Replaced UEdgeVec by Graph
568 - Replaced DEdgeVec by new RootedTree class
569 - Moved functionality of GrowRootedTree() into constructor of RootedTree
570 - Merged calcPairBeliefsNew() into calcPairBeliefs()
571 - Removed calcMarginal2ndO()
572 - Renamed smallSet<T> to SmallSet<T>
573 - Removed class Diffs
574 - [Frederik Eaton] Added backwards compatibility layer for edge interface to
575 BipartiteGraph and FactorGraph (which will be obsoleted soon)
576
577 Bug fixes:
578 * Fixed reversal of min and max in
579 TFactor<T> min( const TFactor<T> &, const TFactor<T> & )
580 TFactor<T> max( const TFactor<T> &, const TFactor<T> & )
581 * [Sebastian Nowozin] Fixed memory leak in MEX file dai
582 * [Frederik Eaton] In PropertySet::getStringAs(), check for typeid(ValueType)
583 before typeid(std::string) (this fixes a strange bug for empty string property)
584 * Added work-around for bug in Boost Graph Library
585 * Fixed bug in MaxSpanningTree (it wrongly assumed that the tree was not empty).
586 * Fixed bug in calcMarginal and calcPairBeliefs where states with zero probability
587 mass were clamped, leading to NaNs or assertion errors (thanks to Dan Preston
588 for reporting this)
589
590
591 libDAI-0.2.2 (2008-09-30)
592 -------------------------
593
594 New features:
595 * Approximate inference methods now report the number of iterations needed.
596 * Added damping to various algorithms to improve convergence properties.
597 * Added more features to utils/createfg for creating factor graphs.
598 * Added ExactInf class for brute force exact inference.
599 * [Giuseppe Pasino] Added "logdomain" property to BP, a boolean that controls
600 whether calculations are done in the log-domain or in the linear domain;
601 doing calculations in the log-domain may help if the numerical range
602 of a double is too small.
603 * [Claudio Lima] Added Max-Product functionality to BP.
604 * Improved documentation.
605
606 Improved architecture:
607 * Added Exceptions framework.
608 * Pervasive change of BipartiteGraph implementation (based on an idea by
609 Giuseppe Passino). BipartiteGraph no longer stores the node properties
610 (former _V1 and _V2), nor does it store a dense adjacency matrix anymore,
611 nor an edge list. Instead, it stores the graph structure as lists of
612 neighboring nodes. This yields a significant memory/speed improvement for
613 large factor graphs, and is more elegant as well. Iterating over neighbors is
614 made easy by using boost::foreach.
615 * Added conditional compilation of inference methods.
616 * VarSet is now implemented using a std::vector<Var> instead of a
617 std::set<Var>, which yields a significant speed improvement. Furthermore,
618 the implementation has been generalized, resulting in the small_set<T> class
619 which can be used to represent sets of small cardinality; VarSet is the
620 specialization with T = Var.
621 * Improved ClusterGraph implementation, yielding significant speedups
622 for the JunctionTree algorithm on large factorgraphs.
623
624 Code cleanup:
625 * Moved everything into namespace "dai".
626 * Renamed DEBUG to DAI_DEBUG to avoid conflicts.
627 * Replaced ENUM2,ENUM3,ENUM4,ENUM5,ENUM6 by single DAI_ENUM macro.
628 * Removed utils/remove_short_loops and matlab/remove_short_loops.
629 * Replaced sub_nb class in mr.h by boost::dynamic_bitset.
630 * Improved index.h:
631 - Renamed Index -> IndexFor
632 - Added some .reserve()'s to IndexFor methods which yields a
633 25% speedup of testregression
634 - Replaced multind by Permute
635 - Added MultiFor
636 - Added State
637 * New funcstionality of factor.h.
638 * Moved Properties and MaxDiff frameworks from InfAlg to each individual
639 inference algorithm, because the Properties framework was not as
640 convenient as I hoped, and not every inference algorithm needs a maxdiff
641 variable. Also, replaced some FactorGraph functionality in InfAlg by a
642 function that returns the FactorGraph. The result is cleaner (less
643 entangled) code.
644 * Removed x2x.
645 * Replaced Complex with real numbers (negative potentials are just too rare
646 to warrant the additional "complexity" :)).
647
648 Miscellaneous improvements:
649 * Now compiles also with MS Visual C++ (thanks to Jiuxiang Hu) and with
650 GCC under Cygwin.
651 * Contributions by Peter Gober:
652 - Renamed variable _N in mr.* for compatibility with g++ under Cygwin.
653 * Misc contributions by Giuseppe Passino:
654 - removed "using namespace std;" from header files - bad practice;
655 - moved header files in include/dai and sources in src;
656 - changed #ifndefs to GNU style;
657 - added extra warning checks (-W -Wextra) and fixed resulting warnings;
658 - dai::TProb:
659 o removed copy constructor and assignment operators (redundant);
660 o implementation of some methods via STL algorithms;
661 o added methods takeExp, takeLog, takeLog0 for transformation in-place;
662 o explicit constructor (prevents implicit conversion from size_t to TProb);
663 o added operator+,+=,-,-=, with argument T (for calculations in log-scale);
664 * Misc contributions by Christian Wojek:
665 - New FactorGraph constructor that constructs from given ranges of factors
666 and variables;
667 - Optimization of FactorGraph constructors using tr1::unordered_map.
668 * FactorGraph constructors no longer check for short loops (huge speed
669 increase for large factor graphs), nor for negative entries. Also, the
670 normtype is now Prob::NORMPROB by default.
671 * Improved MaxSpanningTreePrims algorithm (uses boost::graph).
672
673 Interface changes:
674 * VarSet::
675 - VarSet::stateSpace() -> nrStates(const VarSet &)
676 - VarSet( const std::set<Var> ) -> VarSet( begin, end, sizeHint=0 )
677 - VarSet( const std::vector<Var> ) -> VarSet( begin, end, sizeHint=0 )
678 - removed bool operator||
679 - operator&&(const VarSet&) -> intersects(const VarSet&)
680 - operator&&(const Var&) -> contains(const Var&)
681 * FactorGraph::
682 - delta(const Var &) -> delta(size_t)
683 - Delta(const Var &) -> Delta(size_t)
684 - makeCavity(const Var &) -> makeCavity(size_t)
685 - vars() -> vars
686 - factors() -> factors
687 - removed MakeFactorCavity(size_t)
688 - removed ExactMarginal(const VarSet &)
689 - removed ExactlogZ()
690 - removed updatedFactor(size_t)
691 - removed _normtype and NormType()
692 - removed hasShortLoops(...) and removeShortLoops(...)
693 - WriteToDotFile(const char *filename) -> printDot( std::ostream& os )
694 - undoProb(size_t) -> restoreFactor(size_t)
695 - saveProb(size_t) -> backupFactor(size_t)
696 - undoProbs(const VarSet &) -> restoreFactors(const VarSet &)
697 - saveProbs(const VarSet &) -> backupFactors(const VarSet &)
698 - ReadFromFile(const char*) returns void (throws on error)
699 - WriteToFile(const char*) returns void (throws on error)
700 - removed hasNegatives()
701 * RegionGraph::
702 - nr_ORs() -> nrORs()
703 - nr_IRs() -> nrIRs()
704 - ORs() -> ORs
705 - IRs() -> IRs
706 * *::Regenerate() -> *::construct()
707 * Renamed Index -> IndexFor
708 * Diffs:
709 - max() -> maxDiff()
710 - max_size() -> maxSize()
711 * Prob::max() -> Prob::maxVal()
712 * Factor::
713 - max() -> maxVal()
714 - part_sum() -> partSum()
715 * toc() in util.h now returns seconds as a double
716 * VarSet::operator&&
717 * Properties -> PropertySet
718
719
720 libDAI-0.2.1 (2008-05-26)
721 -------------------------
722
723 Bugfix release.
724 * added missing cstdio header in util.h
725 * fixed Properties in MR_CLAMPING_* and MR_EXACT_*
726 * added description of the factor graph fileformat
727 * improved Makefile
728
729
730 libDAI-0.2.0 (2006-11-30)
731 -------------------------
732
733 First public release.
734
735
736 0.1.5 (2006-11-30)
737 ------------------
738
739 Regressions
740
741 - tests/testlcbp and tests/testlcbp are broken.
742 - EXACT method does not work anymore.
743 - The Properties framework gives a speed penalty because of the lookup
744 costs involved; inner loops should be optimized.
745
746 General framework
747
748 - DAIAlg is now a template class; typedefs for DAIAlg<FactorGraph> and for
749 DAIAlg<RegionGraph> are provided. In this way, we do not have to write "wrapper"
750 functions to forward functionality from either FactorGraph or RegionGraph
751 to DAIAlg. Functionality like clamping can be implemented in FactorGraph
752 and in RegionGraph and no explicit interface is needed in descendants.
753 - New abstract base class InfAlg added, representing an inference algorithm,
754 from which DAIAlg<T> inherits. This solves the incompatibility problems of
755 DAIAlg<T> for different T (e.g. DAIAlg<FactorGraph> was incompatible with
756 DAIAlg<RegionGraph>). More work is required to reduce code duplication
757 (make FactorGraph part of InfAlg).
758 - Added generic interface (nrVars(), Vars(), nrFactors(), factor(size_t),
759 beliefs(), belief(VarSet &), ...) to InfAlg and descendants.
760 - Added a saveProbs/undoProbs interface to InfAlg and descendants that enables
761 one to save a few factors, modify them (e.g. clamp them), and then restore them
762 to their old values. Undo should also init the corresponding messages / beliefs.
763 This can be used if a given factor graph repeatedly needs to be clamped in
764 different ways and an approximation method is run for each clamping; using the
765 saveProbs/undoProbs can give a significant speed increase.
766 - Switched to a general Properties framework that handles the parameters of
767 all inference methods in a uniform manner. The Properties class is a map of
768 several properties in boost::any objects, indexed by their names (strings).
769 It can read from a stream and write to a stream. It is recursive, in the sense
770 that a Properties object can hold a variable of type Properties as well.
771 - Added a generic way of constructing inference algorithms from a factor graph,
772 name and properties object. Added the newInfAlg function which constructs
773 the requested object. This is used by LCBP, the Matlab interface and the
774 command line (test) interface.
775 - Added a generic enum framework for enum parameters. Although implemented as a
776 hack, it is quite useful in that it drastically simplifies and reduces the
777 amount of code for handling enum parameters.
778 - Provided generic functions for calculating marginals in different ways that
779 work for all approximate inference methods.
780
781 Bugfixes
782
783 - Fixed GBP free energy.
784 - Fixed bug in junctiontree (it didn't init the _vars variable).
785 - Corrected two bugs in operator&& and operator|| in VarSet (they returned
786 the logical NOT of what they should return).
787 - Fixed bug in RegionGraph::RecomputeOR(s).
788 - Fixed bug in utils/create_dreg_fg:
789 graph structure was not random for given parameters (forgot to call srand()).
790 - TreeEP bug workaround: use the complete junction tree instead of a subtree.
791 - Fixed bug in JTree::HUGIN() and JTree:ShaferShenoy() in case of junction tree
792 that consists of one outer region only.
793 - Fixed INIT bug in LCBP2::UpdatePancake().
794 - Fixed MaxDiffs flow (except for MR).
795
796 New functionality
797
798 - HAK supports several default cluster choices:
799 minimal (only factors)
800 delta (Markov blankets)
801 loop (all loops consisting of loops consisting of <loopdepth> or less variables)
802 Only the maximal clusters are used as outer clusters.
803 - Implemented TreeEP. It generalizes the heuristic method described in the
804 Minka & Qi paper for obtaining a tree with the most relevant interactions to
805 higher order interactions. Almost all optimizations described in the Minka & Qi
806 paper are used, except that evidence is passed over the whole tree instead of
807 relevant subsets (the latter is almost implemented but buggy). Also added
808 alternative (worst-case) algorithm that uses a maximum spanning tree on the
809 weighted graph where the weight between neighbours i and j is given by
810 N(psi,i,j), where psi is the product of all the factors involving both i and j
811 (which is an upper bound on the effective interaction between i and j).
812 - Implemented MR (MontanariRizzo) based on Bastian's code, but extended it
813 to be able to handle connectivities larger than 3 (in principle, up to 32).
814 It supports different initialization methods (the original RESPPROP,
815 the CLAMPING method and EXACT which uses JTree) and different update methods
816 (FULL and LINEAR).
817 - Implemented LCBP2, an analogon of LCBP which represents pancakes as little
818 networks and uses some approximate inference method on them for calculating
819 marginals.
820 - Now there are several LCBP variants (LCBP, LCBPI, LCBPJ, LCBPK, LCBPL);
821 LCBPJ works only for pairwise, LCBPK is LCBP improved for higher order
822 interactions and LCBPL is LCBPI improved for higher-order interactions.
823 - Wrote one single program utils/createfg for creating various types of
824 random factor graphs.
825 - Wrote utility to visualize factor graphs using graphviz.
826 (it uses the BOOST Program Options library)
827 - Added fginfo utility that displays some info about a .fg file.
828 - Implemented Factor::strength function that calculates the potential strength
829 N(psi,i,j) between variables i and j as described in cs.IT:0504030
830 - Wrote a general MatLab interface matlab/dai (similar to tests/test);
831 this unified the matlab functions dai, dai_bp, dai_mf, dai_jt, dai_tep, dai_cvm.
832 - Added MATLAB routine that returns contraction matrix A for BP convergence analysis.
833 - Implemented a MATLAB interface ai_potstrength for Factor::strength
834 - Added Martijn's x2x
835
836 Improvements of existing code
837
838 - Reimplemented RegionGraph and descendants: a RegionGraph ISA FactorGraph
839 and also a BipartiteGraph<FRegion,Region>. It now also keeps a map that
840 associates outer region indices to factor indices (no powers yet, this
841 is deemed superfluous) and provides functions to recompute (some of) the
842 outer regions from the factors.
843 - InfAlg descendants run() methods now stop immediately and return NAN in case
844 they detect NANs. Only BP does not do NAN checking for performance reasons.
845 - LCBP now works with factors containing zeroes (by defining x/0 = 0).
846 - HAK, GBP and DoubleLoop now conform to the standards for verbose reporting,
847 timing and convergence criteria.
848 - Implemented logZ() for JTree. It does the calculation during message-passing.
849 - Marginal2ndO now optionally divides by the single node beliefs (to the power n-2);
850 hopefully this will give more accurate approximations.
851 - Marginal and Marginal2ndO (optionally) use the new saveProbs/undoProbs functionality
852 for a faster way of calculating marginals, which does not require a call to init()
853 nor cloning the whole object for each clamping. This leads to a significant speedup.
854 - LCBP (and LCBP2) now have complete flexibility in the specification of the
855 inner method, i.e. the method used to generate the initial cavity approximations.
856 One can pass two strings, a name and a properties string, and LCBP simply invokes
857 newInfAlg to construct the corresponding inference algorithm and uses the generic
858 marginal functions to approximate cavity marginals.
859 - Replaced the global "method" variable by local properties and removed ai.h
860 - Added some methods to Factor (operators *, *=, /, /= with doubles as
861 second argument, operators -, +=, -= with other Factors as second
862 arguments, randomize(), RemoveFirstOrderInteractions) and similar
863 operations to Prob
864 - Moving towards boost::program_options for handling command line arguments
865 (tests/test is done).
866 - Renamed some FactorGraph methods:
867 nr_vars -> nrVars
868 nr_factors -> nrFactors
869 varind -> findVar
870 factorind -> findFactor
871 makeFacCavity -> makeFactorCavity
872 - LCBP_SEQMAXRES has been removed because it did strange things.
873 - Implemented RandomDRegularGraph
874 - Implemented JTree::calcMarginal for marginals that are not confined
875 within one cluster (using cut-set conditioning).
876 - Added isConnected() method to FactorGraph (some methods do not work with
877 disconnected factor graphs).
878 - Pair beliefs are now calculated in a symmetrical way by calcPairBeliefs
879 - Removed single node interaction "correction" code from clamping methods
880 - Removed calcCavityDist and calcCavityDist2ndO
881 - No longer depends on GSL.
882 - Increased portability by combining platform dependant utility functions
883 in util.{h,cpp}.
884 - Wrote *.m files providing help
885
886 Testing framework
887
888 - Made a new and significantly improved testing framework that provides most
889 functionality from the command line.
890 - The basis is provided by tests/test, which uses the newInfAlg functionality
891 and enables the user to easily compare from the command line different
892 inference methods on a given factorgraph. All parameters can be specified.
893 Output consists of CPU time, average and maximum single variable marginal
894 errors, relative logZ error and MaxDiff().
895 - tests/aliases.conf contains aliases for standard combinations of methods
896 and their options (which can be used in tests/test).
897 - tests/large contains several bash/python scripts that create random factor
898 graphs, compare several approximate inference algorithms (using tests/test) and
899 allow for easy visualization of the results using PyX.
900 - Added several .fg files for test purposes to /tests (e.g. two ALARM versions
901 alarm.fg and alarm_bnt.fg; testfast.fg, a 4x4 periodic Ising grid for
902 regression testing).
903 - Added a regression test to the Makefile which is included in the standard
904 target. It compares all inference methods on tests/testfast.fg with the
905 results stored in tests/testfast.out
906
907 Miscellaneous
908
909 - Expanded all tabs to spaces (":set tabstop 4\n:set expandtab\n:retab" in vim)
910 - Experimental MATLAB code added for StarEP approximation on cavity
911 - Renamed project to libDAI and changed directory name accordingly.
912 - Renamed JunctionTree to JTree.
913 - Fixed licensing (now it's officially GPL).
914 - Improved README
915
916
917 revision 252
918 ------------
919
920 Functionality
921 - Added RegionGraph, GBP, CVM and HAK (double-loop).
922 - Added JunctionTree (with two update algorithms, HUGIN and Shafer-Shenoy), which is a
923 RegionGraph.
924 - NormType is now chosen automatically (in case of negative factors, Prob::NORMLINF is used,
925 otherwise the default Prob::NORMPROB is used). Also, in case of negative factors, the
926 RegionGraph constructors assign each Factor to a unique outer region instead of dividing
927 it over all subsuming outer regions. See README for when negative factors are known to work
928 and when not.
929 - FactorGraph::FactorGraph(const vector<Factor>) only gives a warning in case of short loops,
930 it does not automatically merge factors anymore.
931 - Removed BP_SEQMAXRESNOCLEAR (all cavity initialization methods now are implicitly NOCLEAR)
932 - Added MATLAB interface functions ai_readfg, ai_removeshortloops and ai_bp
933 - Added LCBP-III type that should be equivalent to LCBP-II, but can handle zeroes
934 in potentials. Note that it is significantly slower than LCBP-II (and has to be reimplemented
935 such that it does not store the complete pancakes, but represents them as little factor graphs).
936
937 Implementation / code
938 - Made a seperate type WeightedGraph, which until now only implements Prim's
939 maximal spanning tree algorithm and is only used by the junction tree code. It might
940 be good to make it a class somewhere in the future and extend it's interface.
941 - Made a seperate class ClusterGraph, which is only used by the junction tree
942 code. It's main purpose is a graph-theoretical variable elimination algorithm.
943 - Implemented the heuristic "minimum-new-edges-in-clique-graph" for variable elimination.
944 - Massive code cleanup, moving towards "generic" programming style, using
945 multiple inheritance and polymorphism.
946 o BP, LCBP, MF, HAK and JunctionTree now inherit from a common DAIAlg class
947 o Made generic functions Marginal, Marginal2ndO, calcCavityDist, calcCavityDist2ndO, clamp
948 that can be used by FactorGraph-based DAIAlgs.
949 o Created TProb<T> class, which stores a probability vector (without the accompanying indexing
950 and VarSet) and provides functionality for it (which is used by TFactor<T>).
951 o Rewrote the VarSet class. It now caches its statespace(). It now privately inherits from set<Var>.
952 I had to overload the insert methods of set<Var> so that they calculate the new statespace.
953 o Rewrote the TFactor class. The TFactor class now HAS a TProb and HAS a VarSet.
954 - Rewrote BP to use the new TProb<T> interface. Performance of BP improved up to a factor 6 by:
955 o using Prob's instead of Factor's;
956 o splitting the multiplication of the messages into two parts (thanks to Vicenc!);
957 o optimizing the calculation of the beliefs (only the message calculations were optimized till now).
958 o replacing FactorGraph::_nb1 and _nb2 (which were set<size_t>) by vector<size_t>
959 - LCBP now seperately stores cavitydists and pancakes. Added InitPancakes() method
960 that takes the cavitydists and multiplies them with the relevant factors. This
961 resulted in an API change in AI which now accepts and returns initial cavitydists
962 instead of initial pancakes.
963
964 Minor changes
965 - Started writing DoxyGen documentation
966 - Renamed lcptab2fg.m matlab/ai_writefg.m
967 - Moved all matlab stuff to matlab/
968 - More detailed reporting (also reports clocks used).
969 - Marginal and Marginal2ndO now use *differences* in logZ to avoid NaNs.
970 - Improved testing suite.
971 - Removed logreal support.
972 - FactorGraph now also supports input streams and ignores comment lines in .fg files.
973 - Added tests/create_full_fg.cpp and tests/create_ising_fg.cpp which create
974 full and periodic 2D Ising networks according to some command line parameters.
975 - Now logZ really returns logZ instead of -logZ.
976 - Added FactorGraph::WriteToDotFile
977
978
979 0.1.4 (2006-04-13)
980 ------------------
981 - Added file IO routines to read and write factorgraphs.
982 - Added L-infinity normalization for use with (partially) negative factors.
983 - Renamed BetheF, MFF to logZ, which now use complex numbers to be able to
984 handle (partially) negative factors.
985 - Added test suite.
986 - All probabilities are now represented using double instead of LogReal<double>.
987 - Combined Alg and Alg3 into LCBP. Several update schemes possible.
988 - Combined several variants of BP into doBP. Several update schemes possible.
989 Now uses precalculated indices for optimization.
990 - Renamed Node -> Var and Potential -> Factor.
991 - Extensive code cleanup. More use of OO techniques. Changed API.
992 - MaxIter now means maximum number of passes (corresponding to number of
993 _parallel_ updates).
994 - MaxDiff now means the maximum L-infinity distance between the updated and
995 original single variable beliefs, for all AI methods.
996 - Implemented RBP which converges faster than BP for difficult problems.
997 - Now uses method parameter which is a bitmask combining outmethod and inmethod
998 (see ai.h).
999
1000
1001 0.1.3 (2006-03-22)
1002 --------------------
1003 - All AI methods now return maxdiff
1004 - ai.cpp:
1005 o Now returns maxdiffinner and maxdiffouter
1006 o New BP2ndO innermethod (estimate only 2nd order cavity interactions)
1007 o New InitCav outermethod (only create initial cavity distributions)
1008 - bp.cpp:
1009 o New CavityDist2ndO which estimates 2nd order cavity interactions
1010 - Makefile:
1011 o Bugfix: removed dependencies on algwim.*
1012
1013
1014 0.1.2 (2006-02-28)
1015 --------------------
1016 - Cleaned up alg.cpp (removed Alg2 and its corresponding data structures).
1017 - Added the possibility to provide initial cavity distributions as an input
1018 argument to ai (not much error checking is done, so be careful).
1019 - Potentials2mx now correctly sets the dimensions of the P field (i.e. for
1020 the output arguments Q, Q0 of ai).
1021 - Removed algwim.* since it does not work.
1022
1023
1024 0.1.1 (2006-02-28)
1025 --------------------
1026 - The constructors of (Log)FactorGraph and LogFactorGraph from a
1027 vector<(Log)Potential> now merge potentials to prevent short loops (of length
1028 4) in the factor graph. These are used in ai to construct the factor graphs
1029 from the psi argument. If compiled with DEBUG defined, the method calc_nb()
1030 of BipGraph checks for the existence of short loops.
1031 - Changed calling syntax of ai (now the actual syntax *does* correspond to its
1032 description in the help).
1033 - ai does not hook cout anymore (which caused weird segfaults).
1034 - Fixed a bug in an assert statement in the matlab interface code in ai.cpp.
1035 - Removed network.* since it is not useful.
1036
1037
1038 0.1.0 (2006-02-28)
1039 --------------------
1040 First version worthy of a version number.