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

📄 cvserialexecutor.h

📁 粗糙集应用软件
💻 H
字号:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#ifndef __CVSERIALEXECUTOR_H__
#define __CVSERIALEXECUTOR_H__

#include <copyright.h>

#include <kernel/algorithms/serialexecutorloop.h>

#include <kernel/structures/rules.h>

//-------------------------------------------------------------------
// Class.........: CVSerialExecutor
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Implements n-fold crossvalidation.
// Revisions.....:
//===================================================================

class CVSerialExecutor : public SerialExecutorLoop {
protected:

	//- Parameters.....................................................
	bool                invert_;  // Invert sampling?
	Vector(int)         indices_; // For internal use, maps an object to a partition index.

protected:

  //- Methods inherited from SerialExecutorLoop......................
	virtual bool        InitializeSamplingScheme(const DecisionTable &table, bool masked, const RNG &rng);
	virtual bool        SampleTables(int i, const RNG &rng, DecisionTable &training, DecisionTable &testing, bool masked) const;

public:

  //- Constructors/destructor........................................
  CVSerialExecutor();
  virtual ~CVSerialExecutor();

  //- Methods inherited from Identifier..............................
	DECLAREIDMETHODS()

  //- Methods inherited from Algorithm..............................
	virtual String      GetParameters() const;
	virtual bool        SetParameter(const String &keyword, const String &value);

	//- Local methods..................................................
	bool                InvertSampling() const {return invert_;}
	bool                InvertSampling(bool invert) {invert_ = invert; return true;}

};

#endif

⌨️ 快捷键说明

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