targetrank.cpp
来自「基于稀疏网络的精选机器学习模型」· C++ 代码 · 共 48 行
CPP
48 行
// -*-c++-*-//===========================================================//= University of Illinois at Urbana-Champaign =//= Department of Computer Science =//= Dr. Dan Roth - Cognitive Computation Group =//= =//= Project: SNoW =//= =//= Module: TargetRank.cpp =//= Version: 3.2.0 =//= Authors: Jeff Rosen, Andrew Carlson, Nick Rizzolo =//= Date: xx/xx/98 = //= =//= Comments: =//===========================================================#include "GlobalParams.h"#include "TargetRank.h"TargetRanking TargetRanking::operator=(const TargetRanking & rhs){ if(this != &rhs){ globalParams = rhs.globalParams; single_target = rhs.single_target; threshold = rhs.threshold; //explicit copy of cr contents TargetRanking::const_iterator it = rhs.begin(); TargetRanking::const_iterator end = rhs.end(); for( ; it != end ; it++ ) { (*this).push_back(*it); } } return *this;}void TargetRanking::Show() const{ const_iterator it = this->begin(); const_iterator end = this->end(); for (; it != end; ++it) *globalParams.pResultsOutput << "(" << it->id << ", " << it->activation << ")\n";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?