📄 winsvmdlg.h
字号:
// winsvmDlg.h : 头文件
//
#pragma once
#include "svm.h"
#include "xuanxiang.h"
#include "yuce.h"
#include "guyihua.h"
#define UM_NOTIFY (WM_USER+220)
// CwinsvmDlg 对话框
class CwinsvmDlg : public CDHtmlDialog
{
// 构造
public:
CwinsvmDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_WINSVM_DIALOG, IDH = IDR_HTML_WINSVM_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
HRESULT OnButtonOK(IHTMLElement *pElement);
HRESULT OnButtonCancel(IHTMLElement *pElement);
HRESULT OnButtonHelp(IHTMLElement *pElement);
// 实现
protected:
HICON m_hIcon;
NOTIFYICONDATA m_NotifyIconData;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnDestroy();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg LRESULT OnMyNotify(WPARAM wParam, LPARAM lParam);//改过
afx_msg void OnMyRestore();
afx_msg void OnAbout();
DECLARE_MESSAGE_MAP()
DECLARE_DHTML_EVENT_MAP()
public:
afx_msg void OnBnClickedButton1();
// 训练函数
void svmtrain();
int read_problem(const char *filename);
void do_cross_validation(void);
int cross_validation;
int nr_fold;
char input_file_name[1024];
char model_file_name[1024];
struct svm_parameter param; // set by parse_command_line
struct svm_problem prob; // set by read_problem
struct svm_model *model;
struct svm_node *x_space;
Cxuanxiang* m_pMyPropSheet;
afx_msg void OnClose();
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton6();
CWinThread * m_mythread;//线程
DWORD dwCode;//判断线程是否激活
//预测数据
Cyuce * m_yuce;
struct svm_model* modely;
int predict_probability;
int max_nr_attr;
struct svm_node *x;
void predict(FILE *input, FILE *output);
//归一化
Cguyihua * m_guyihua;
afx_msg void OnSize(UINT nType, int cx, int cy);
protected:
virtual void OnOK();
public:
afx_msg void OnBnClickedButton3();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -