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

📄 bfgsmapfix.h

📁 Amis - A maximum entropy estimator 一个最大熵模型统计工具
💻 H
字号:
////////////////////////////////////////////////////////////////////////////  Copyright (c) 2000, Yusuke Miyao///  You may distribute under the terms of the Artistic License.//////  <id>$Id: BFGSMAPFix.h,v 1.2 2003/05/11 18:12:09 yusuke Exp $</id>///  <collection>Maximum Entropy Estimator</collection>///  <name>BFGSMAPFix.h</name>///  <overview>Maximum entropy model estimator by BFGS method with///  MAP estimation</overview>/////////////////////////////////////////////////////////////////////////#ifndef Amis_BFGSMAPFix_h_#define Amis_BFGSMAPFix_h_#include <amis/configure.h>#include <amis/BFGSMAP.h>#include <amis/ModelFix.h>#include <amis/EventFixSpace.h>AMIS_NAMESPACE_BEGINtemplate < class Feature >class BFGSMAPFix : public BFGSMAPBase< ModelFixBase, EventFixSpaceBase< Feature > > {public:  explicit BFGSMAPFix( int m = DEFAULT_MEMORY_SIZE )    : BFGSMAPBase< ModelFixBase, EventFixSpaceBase< Feature > >( m ) {  }  explicit BFGSMAPFix( GaussianPriorPtr p, int m = DEFAULT_MEMORY_SIZE )    : BFGSMAPBase< ModelFixBase, EventFixSpaceBase< Feature > >( p, m ) {  }  BFGSMAPFix( ModelFixBase& init_model, EventFixSpaceBase< Feature >& init_event, GaussianPriorPtr p, int m = DEFAULT_MEMORY_SIZE )    : BFGSMAPBase< ModelFixBase, EventFixSpaceBase< Feature > >( init_model, init_event, p, m ) {  }  virtual ~BFGSMAPFix() {}  /// Destructor  const std::string estimatorName( void ) const {    return "BFGSMAPFix<" + Feature::featureTypeName() + ">(" + gaussian_prior->getName() + ")";  }  /// Get the name of this class};/*template< class Feature > class BFGSMAPFixKernel : public BFGSMAPBase< EventFixSpaceKernel< Feature >, ModelExpectFixKernel< Feature >, EmpiricalExpectFixKernel< Feature, EventFixSpaceKernel< Feature > > > {	public:	typedef EventFixSpaceKernel< Feature > EventSpace;	typedef BFGSMAPBase< EventSpace,  ModelExpectFixKernel< Feature >, EmpiricalExpectFixKernel< Feature, EventSpace > > Base;		BFGSMAPFixKernel( ModelFix* init_model, EventSpace* init_event, int m, Real v, int num_threads, MAPGaussianPrior::VarianceType vtype ) : Base( init_model, init_event, m, v, num_threads, vtype ) {}	/// Constructor		virtual ~BFGSMAPFixKernel() {}		/// Destructor		const std::string estimatorName( void ) const {		return "BFGSMAPFixKernel<" + Feature::featureTypeName() + ">" + getVarianceString();	}	/// Get the name of this class};*/AMIS_NAMESPACE_END#endif // Amis_BFGSMAPFix_h_// end of BFGSMAPFix.h

⌨️ 快捷键说明

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