binaryoutcomecomparator.h

来自「The ROSETTA C++ library is a collection 」· C头文件 代码 · 共 51 行

H
51
字号
//-------------------------------------------------------------------// Author........: Aleksander 豩rn// Date..........:// Description...:// Revisions.....://===================================================================#ifndef __BINARYOUTCOMECOMPARATOR_H__#define __BINARYOUTCOMECOMPARATOR_H__#include <copyright.h>#include <kernel/basic/types.h>#include <kernel/basic/undefined.h>#include <kernel/basic/string.h>#include <kernel/basic/vector.h>//-------------------------------------------------------------------// Class.........: BinaryOutcomeComparator// Author........: Aleksander 豩rn// Date..........:// Description...: Base class for doing statistical hypothesis//                 testing on classifiers with binary outcomes.// Comments......:// Revisions.....://===================================================================class BinaryOutcomeComparator {protected:	//- Member variables...............................................	Vector(Vector(int))   targets_;  // Actual outcomes (0 or 1).	Vector(Vector(float)) outputs_;  // Classifiers' certainty that outcome is 1.protected:	//- Constructors...................................................	BinaryOutcomeComparator();	//- Helper methods.................................................  virtual bool          LoadPairs(Vector(int) &targets, Vector(float) &outputs, const String &filename, bool swapped = false) const;public:	//- Constructors/destructor........................................	BinaryOutcomeComparator(const Vector(String) &filenames, const Vector(bool) &swapped);	virtual ~BinaryOutcomeComparator();};#endif

⌨️ 快捷键说明

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