⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bfgstree.h

📁 Amis - A maximum entropy estimator 一个最大熵模型统计工具
💻 H
字号:
////////////////////////////////////////////////////////////////////////////  Copyright (c) 2000, Yusuke Miyao///  You may distribute under the terms of the Artistic License.//////  <id>$Id: BFGSTree.h,v 1.2 2003/05/11 18:12:09 yusuke Exp $</id>///  <collection>Maximum Entropy Estimator</collection>///  <name>BFGSTree.h</name>///  <overview>Maximum entropy model estimator by BFGS method</overview>/////////////////////////////////////////////////////////////////////////#ifndef Amis_BFGSTree_h_#define Amis_BFGSTree_h_#include <amis/configure.h>#include <amis/BFGS.h>#include <amis/EventTreeSpaceBase.h>#include <amis/ModelExpectTree.h>#include <amis/AlphaSet.h>AMIS_NAMESPACE_BEGIN///////////////////////////////////////////////////////////////////////// <classdef>/// <name>BFGSTree</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 BFGSTree : public BFGSBase< ModelBase,				  EventTreeSpaceBase< Feature >,                                  ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > > {public:  BFGSTree( int m = DEFAULT_MEMORY_SIZE )    : BFGSBase< ModelBase,		EventTreeSpaceBase< Feature >,		ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > >( m ) {}  /// Constructor  BFGSTree( ModelBase& init_model, EventTreeSpaceBase< Feature >& init_event, int m = DEFAULT_MEMORY_SIZE )    : BFGSBase< ModelBase,		EventTreeSpaceBase< Feature >,		ModelExpectTree< Feature, FeatureFreqValue, AlphaValue > >( init_model, init_event, m ) {}  /// Constructor  virtual ~BFGSTree() {}  /// Destructor  const std::string estimatorName( void ) const {    return "BFGSTree<" + Feature::featureTypeName() + ">";  }  /// Get the name of this class};/// </body>/// </classdef>///////////////////////////////////////////////////////////////////////// <classdef>/// <name>BFGSJointTree</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 for joint probability estimation./// </desc>/// <body>template < class Feature >class BFGSJointTree  : public BFGSBase< ModelBase,		     EventTreeSpaceBase< Feature >,		     ModelExpectTree< Feature, FeatureFreqValue, AlphaValue, true >,		     EmpiricalExpect< ModelBase, EventTreeSpaceBase< Feature >, true > > {public:  BFGSJointTree( int m = DEFAULT_MEMORY_SIZE )    : BFGSBase< ModelBase,		EventTreeSpaceBase< Feature >,		ModelExpectTree< Feature, FeatureFreqValue, AlphaValue, true >,		EmpiricalExpect< ModelBase, EventTreeSpaceBase< Feature >, true > >( m ) {}  /// Constructor  BFGSJointTree( ModelBase& init_model, EventTreeSpaceBase< Feature >& init_event, int m = DEFAULT_MEMORY_SIZE )    : BFGSBase< ModelBase,		EventTreeSpaceBase< Feature >,		ModelExpectTree< Feature, FeatureFreqValue, AlphaValue, true >,		EmpiricalExpect< ModelBase, EventTreeSpaceBase< Feature >, true > >( init_model, init_event, m ) {}  /// Constructor  virtual ~BFGSJointTree() {}  /// Destructor  const std::string estimatorName( void ) const {    return "BFGSJointTree<" + Feature::featureTypeName() + ">";  }  /// Get the name of this class};/// </body>/// </classdef>AMIS_NAMESPACE_END#endif // Amis_BFGSTree_h_// end of BFGSTree.h

⌨️ 快捷键说明

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