annotate toolboxes/FullBNT-1.0.7/bnt/inference/static/@belprop_mrf2_inf_engine/set_params.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function engine = set_params(engine, varargin)
wolffd@0 2 % SET_PARAMS Modify parameters of the inference engine
wolffd@0 3 % engine = set_params(engine, 'param1',val1, 'param2',val2, ...)
wolffd@0 4 %
wolffd@0 5 % Parameter names are listed below.
wolffd@0 6 %
wolffd@0 7 % max_iter - max. num. iterations
wolffd@0 8 % momentum - weight assigned to old message in convex combination
wolffd@0 9 % (useful for damping oscillations)
wolffd@0 10 % tol - tolerance used to assess convergence
wolffd@0 11 % verbose - 1 means print error at every iteration [0]
wolffd@0 12
wolffd@0 13 [engine.max_iter, engine.momentum, engine.tol, engine.verbose] = ...
wolffd@0 14 process_options('max_iter', engine.max_iter, 'momentum', engine.momentum, ...
wolffd@0 15 'tol', engine.tol, 'verbose', engine.verbose);