bfgsmaptree.h

来自「Amis - A maximum entropy estimator 一个最大」· C头文件 代码 · 共 73 行

H
73
字号
////////////////////////////////////////////////////////////////////////////  Copyright (c) 2000, Yusuke Miyao///  You may distribute under the terms of the Artistic License.//////  <id>$Id: BFGSMAPTree.h,v 1.2 2003/05/11 18:12:09 yusuke Exp $</id>///  <collection>Maximum Entropy Estimator</collection>///  <name>BFGSMAPTree.h</name>///  <overview>Maximum entropy model estimator by BFGS method with///  MAP estimation for feature forests</overview>/////////////////////////////////////////////////////////////////////////#ifndef Amis_BFGSMAPTree_h_#define Amis_BFGSMAPTree_h_#include <amis/configure.h>#include <amis/BFGSMAP.h>#include <amis/EventTreeSpaceBase.h>#include <amis/ModelExpectTree.h>#include <amis/AlphaSet.h>AMIS_NAMESPACE_BEGIN///////////////////////////////////////////////////////////////////////// <classdef>/// <name>BFGSMAPTree</name>/// <overview>ME estimator by limited-memory BFGS method</overview>/// <desc>/// A maximum entropy estimator based on the limited-memory BFGS method/// for feature forest./// </desc>/// <body>template < class Feature >class BFGSMAPTree : public BFGSMAPBase< ModelBase,					EventTreeSpaceBase< Feature >,                                        ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > > {public:  explicit BFGSMAPTree( int m = DEFAULT_MEMORY_SIZE )    : BFGSMAPBase< ModelBase,		   EventTreeSpaceBase< Feature >,		   ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > >( m ) {}  /// Constructor  explicit BFGSMAPTree( GaussianPriorPtr p, int m = DEFAULT_MEMORY_SIZE )    : BFGSMAPBase< ModelBase,		   EventTreeSpaceBase< Feature >,		   ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > >( p, m ) {}  /// Constructor  BFGSMAPTree( ModelBase& init_model, EventTreeSpaceBase< Feature >& init_event, GaussianPriorPtr p, int m = DEFAULT_MEMORY_SIZE )    : BFGSMAPBase< ModelBase,		   EventTreeSpaceBase< Feature >,		   ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > >( init_model, init_event, p, m ) {}  /// Constructor  virtual ~BFGSMAPTree() {}  /// Destructor  const std::string estimatorName( void ) const {    return "BFGSMAPTree<" + Feature::featureTypeName() + ">(" + gaussian_prior->getName() + ")";  }  /// Get the name of this class};/// </body>/// </classdef>AMIS_NAMESPACE_END#endif // Amis_BFGSMAPTree_h_// end of BFGSMAPTree.h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?