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

📄 compute_param.h

📁 文本的分类器C++代码
💻 H
字号:
// Compute_Param.h: interface for the CCompute_Param class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPUTE_PARAM_H__0155D7A3_9A2A_4712_A5F1_CC2E36C30257__INCLUDED_)
#define AFX_COMPUTE_PARAM_H__0155D7A3_9A2A_4712_A5F1_CC2E36C30257__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CCompute_Param  
{
public:
	CCompute_Param();
	virtual ~CCompute_Param();
	void DumpToFile(CString strFileName);
	bool GetFromFile(CString strFileName);
private:
	void Serialize(CArchive &ar);
public:
	//Learning options
	double	C;
	double	cost_factor;
	long	biased_Hyperplane;
	long	remove_inconsitant;
	//performance estimations options
	long	loo;
	double	rho;
	long	search_depth;
	//transduction option
	double	fraction;
	//kernel option
	long	kernel_type;
	long	poly_degree;
	double	rbf_gamma;
	double	poly_s;
	double	poly_c;
	
	//optimization options 
	long	maximum_size;
	long 	new_variable;//2..maximun_size
	double	cache_size;//5..,the larger, the faster
	double	epsion;
	long	iteration_time;//default 100
	int 	final_test;//default 1, to do final test.

	int     classifier_num;     //类别总数
	int		classifier_type;    //分类器的类型
	//output options

	CString	trainfile;
	CString	modelfile;
	CString	resultfile;
	CString	classifyfile;
	CString matrixfile;
	CString resultpath;

	int	running;  //0--not running  1--generate document vectors  2--train svm
	bool paused;
	//global variables
	double	Coff[2];
};

#endif // !defined(AFX_COMPUTE_PARAM_H__0155D7A3_9A2A_4712_A5F1_CC2E36C30257__INCLUDED_)

⌨️ 快捷键说明

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