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

📄 rankboost.h

📁 The program implements three large-margin thresholded ensemble algorithms for ordinal regression. I
💻 H
字号:
/**   rankboost.h: efficiently implement the RankBoost    algorithm (Freund et al. 2003) for ordinal regression   (c) 2006-2007 Hsuan-Tien Lin**/#ifndef __LEMGA_AGGRANK_RANKBOOST_H__#define __LEMGA_AGGRANK_RANKBOOST_H__#include "aggrank.h"namespace lemga {  class RankBoost : public AggRank {  protected:    REAL reg_param;  public:    explicit RankBoost (UINT _n_rank = 2): AggRank(_n_rank), reg_param(0.0) { }    explicit RankBoost (std::istream& is) { is >> *this; }    virtual const id_t& id () const;    virtual RankBoost* create () const { return new RankBoost(); }    virtual RankBoost* clone () const { return new RankBoost(*this); }    void set_reg_param(REAL _reg_param) { reg_param = _reg_param; }  public:    virtual void train ();  private:    void update_with_dec(vREAL& rhopos, vREAL& rhoneg, REAL& sum_rhodiff, REAL& obj);    REAL compute_w(pLearnModel plm);  };} // namespace lemga#ifdef  __ADARANK_H__#warning "This header file may conflict with another `adarank.h' file."#endif#define __ADARANK_H__#endif

⌨️ 快捷键说明

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