📄 binaryoutcomecomparator.h
字号:
//-------------------------------------------------------------------// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -