亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form2.cs

?? 基于貝葉斯的數據挖掘算法的實現,使用visual stutio2005編程實現。
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
using System.Text;
using Microsoft.Office.Interop.Excel;
using Microsoft.Office.Core;
namespace DataMing
{
	/// <summary>
	/// Form2 的摘要說明。
	/// </summary>
	public class Form2 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.TabPage tabPage3;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.DataGrid dgSource;
		private System.Windows.Forms.Button btnShow;
		private System.Windows.Forms.DataGrid dgInfo;
		static private int kind = 0;//分類數目
		static private int feature = 0;
		private string path = null;
		static private DataSet ds = new DataSet();
		private System.Windows.Forms.DataGrid dgData;
		private System.Windows.Forms.Button btnCompute;
		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox tbResult;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form2()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();
            
			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.dgInfo = new System.Windows.Forms.DataGrid();
			this.btnShow = new System.Windows.Forms.Button();
			this.button1 = new System.Windows.Forms.Button();
			this.dgSource = new System.Windows.Forms.DataGrid();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnCompute = new System.Windows.Forms.Button();
			this.dgData = new System.Windows.Forms.DataGrid();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.tbResult = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.button2 = new System.Windows.Forms.Button();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgInfo)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dgSource)).BeginInit();
			this.tabPage2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgData)).BeginInit();
			this.tabPage3.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Controls.Add(this.tabPage3);
			this.tabControl1.Location = new System.Drawing.Point(0, 0);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(520, 400);
			this.tabControl1.TabIndex = 0;
			this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.dgInfo);
			this.tabPage1.Controls.Add(this.btnShow);
			this.tabPage1.Controls.Add(this.button1);
			this.tabPage1.Controls.Add(this.dgSource);
			this.tabPage1.Location = new System.Drawing.Point(4, 21);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(512, 375);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "訓練數據";
			// 
			// dgInfo
			// 
			this.dgInfo.AlternatingBackColor = System.Drawing.Color.LightGray;
			this.dgInfo.BackColor = System.Drawing.Color.DarkGray;
			this.dgInfo.BackgroundColor = System.Drawing.Color.Ivory;
			this.dgInfo.CaptionBackColor = System.Drawing.Color.White;
			this.dgInfo.CaptionFont = new System.Drawing.Font("Verdana", 10F);
			this.dgInfo.CaptionForeColor = System.Drawing.Color.Navy;
			this.dgInfo.CaptionVisible = false;
			this.dgInfo.DataMember = "";
			this.dgInfo.ForeColor = System.Drawing.Color.Black;
			this.dgInfo.GridLineColor = System.Drawing.Color.Black;
			this.dgInfo.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
			this.dgInfo.HeaderBackColor = System.Drawing.Color.Silver;
			this.dgInfo.HeaderForeColor = System.Drawing.Color.Black;
			this.dgInfo.LinkColor = System.Drawing.Color.Navy;
			this.dgInfo.Location = new System.Drawing.Point(8, 232);
			this.dgInfo.Name = "dgInfo";
			this.dgInfo.ParentRowsBackColor = System.Drawing.Color.White;
			this.dgInfo.ParentRowsForeColor = System.Drawing.Color.Black;
			this.dgInfo.ReadOnly = true;
			this.dgInfo.SelectionBackColor = System.Drawing.Color.Navy;
			this.dgInfo.SelectionForeColor = System.Drawing.Color.White;
			this.dgInfo.Size = new System.Drawing.Size(496, 128);
			this.dgInfo.TabIndex = 3;
			this.dgInfo.Visible = false;
			// 
			// btnShow
			// 
			this.btnShow.Location = new System.Drawing.Point(288, 184);
			this.btnShow.Name = "btnShow";
			this.btnShow.Size = new System.Drawing.Size(136, 32);
			this.btnShow.TabIndex = 2;
			this.btnShow.Text = "顯示特征值信息";
			this.btnShow.Click += new System.EventHandler(this.btnShow_Click);
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(72, 184);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(96, 32);
			this.button1.TabIndex = 1;
			this.button1.Text = "導入訓練數據";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// dgSource
			// 
			this.dgSource.AlternatingBackColor = System.Drawing.Color.LightGray;
			this.dgSource.BackColor = System.Drawing.Color.DarkGray;
			this.dgSource.BackgroundColor = System.Drawing.Color.Ivory;
			this.dgSource.CaptionBackColor = System.Drawing.Color.White;
			this.dgSource.CaptionFont = new System.Drawing.Font("Verdana", 10F);
			this.dgSource.CaptionForeColor = System.Drawing.Color.Navy;
			this.dgSource.CaptionVisible = false;
			this.dgSource.DataMember = "";
			this.dgSource.ForeColor = System.Drawing.Color.Black;
			this.dgSource.GridLineColor = System.Drawing.Color.Black;
			this.dgSource.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
			this.dgSource.HeaderBackColor = System.Drawing.Color.Silver;
			this.dgSource.HeaderForeColor = System.Drawing.Color.Black;
			this.dgSource.LinkColor = System.Drawing.Color.Navy;
			this.dgSource.Location = new System.Drawing.Point(8, 16);
			this.dgSource.Name = "dgSource";
			this.dgSource.ParentRowsBackColor = System.Drawing.Color.White;
			this.dgSource.ParentRowsForeColor = System.Drawing.Color.Black;
			this.dgSource.ReadOnly = true;
			this.dgSource.SelectionBackColor = System.Drawing.Color.Navy;
			this.dgSource.SelectionForeColor = System.Drawing.Color.White;
			this.dgSource.Size = new System.Drawing.Size(472, 152);
			this.dgSource.TabIndex = 0;
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.btnSave);
			this.tabPage2.Controls.Add(this.btnCompute);
			this.tabPage2.Controls.Add(this.dgData);
			this.tabPage2.Location = new System.Drawing.Point(4, 21);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Size = new System.Drawing.Size(512, 375);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "數據分類";
			// 
			// btnSave
			// 
			this.btnSave.Location = new System.Drawing.Point(264, 328);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new System.Drawing.Size(75, 32);
			this.btnSave.TabIndex = 2;
			this.btnSave.Text = "保存結果";
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnCompute
			// 
			this.btnCompute.Location = new System.Drawing.Point(72, 328);
			this.btnCompute.Name = "btnCompute";
			this.btnCompute.Size = new System.Drawing.Size(104, 32);
			this.btnCompute.TabIndex = 1;
			this.btnCompute.Text = "導入數據并分類";
			this.btnCompute.Click += new System.EventHandler(this.btnCompute_Click);
			// 
			// dgData
			// 
			this.dgData.AlternatingBackColor = System.Drawing.Color.LightGray;
			this.dgData.BackColor = System.Drawing.Color.DarkGray;
			this.dgData.CaptionBackColor = System.Drawing.Color.White;
			this.dgData.CaptionFont = new System.Drawing.Font("Verdana", 10F);
			this.dgData.CaptionForeColor = System.Drawing.Color.Navy;
			this.dgData.CaptionVisible = false;
			this.dgData.DataMember = "";
			this.dgData.ForeColor = System.Drawing.Color.Black;
			this.dgData.GridLineColor = System.Drawing.Color.Black;
			this.dgData.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
			this.dgData.HeaderBackColor = System.Drawing.Color.Silver;
			this.dgData.HeaderForeColor = System.Drawing.Color.Black;
			this.dgData.LinkColor = System.Drawing.Color.Navy;
			this.dgData.Location = new System.Drawing.Point(16, 24);
			this.dgData.Name = "dgData";
			this.dgData.ParentRowsBackColor = System.Drawing.Color.White;
			this.dgData.ParentRowsForeColor = System.Drawing.Color.Black;
			this.dgData.ReadOnly = true;
			this.dgData.SelectionBackColor = System.Drawing.Color.Navy;
			this.dgData.SelectionForeColor = System.Drawing.Color.White;
			this.dgData.Size = new System.Drawing.Size(472, 288);
			this.dgData.TabIndex = 0;
			// 
			// tabPage3
			// 
			this.tabPage3.Controls.Add(this.groupBox1);
			this.tabPage3.Controls.Add(this.groupBox2);
			this.tabPage3.Location = new System.Drawing.Point(4, 21);
			this.tabPage3.Name = "tabPage3";
			this.tabPage3.Size = new System.Drawing.Size(512, 375);
			this.tabPage3.TabIndex = 2;
			this.tabPage3.Text = "單個輸入";
			// 
			// groupBox1
			// 
			this.groupBox1.Location = new System.Drawing.Point(8, 16);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(488, 240);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "輸入特征值";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.tbResult);
			this.groupBox2.Controls.Add(this.label1);
			this.groupBox2.Controls.Add(this.button2);
			this.groupBox2.Location = new System.Drawing.Point(8, 280);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(488, 72);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "計算結果";
			// 
			// tbResult
			// 
			this.tbResult.Location = new System.Drawing.Point(256, 40);
			this.tbResult.Name = "tbResult";
			this.tbResult.TabIndex = 2;
			this.tbResult.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(184, 40);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 23);
			this.label1.TabIndex = 1;
			this.label1.Text = "所屬分類:";
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(32, 32);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(72, 24);
			this.button2.TabIndex = 0;
			this.button2.Text = "計算結果";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// Form2
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(520, 405);
			this.Controls.Add(this.tabControl1);
			this.Name = "Form2";
			this.Text = "數據分類";
			this.tabControl1.ResumeLayout(false);
			this.tabPage1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dgInfo)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dgSource)).EndInit();
			this.tabPage2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dgData)).EndInit();
			this.tabPage3.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion
        

		/// <summary>
		/// 應用程序的主入口點。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			System.Windows.Forms.Application.Run(new Form2());
		}
        /// <summary>
        /// 拋出異常。
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
		private void button1_Click(object sender, System.EventArgs e)
		{
			OpenFileDialog openFileDialog1 = new OpenFileDialog();

			openFileDialog1.InitialDirectory = "c:\\" ;
			openFileDialog1.Filter = "txt files (*.xls)|*.xls" ;
			openFileDialog1.FilterIndex = 1 ;
			openFileDialog1.RestoreDirectory = true ;

			if(openFileDialog1.ShowDialog() == DialogResult.OK)
			{
				path = openFileDialog1.FileName;
				dgSource.DataSource = GetDataTable(path);
				dgInfo.DataSource = GetDataSet(path,GetSchema(path));
			}

		}

		private void btnShow_Click(object sender, System.EventArgs e)
		{
		   dgInfo.Visible = !dgInfo.Visible;
		   btnShow.Text = dgInfo.Visible ?"隱藏特征值信息":"顯示特征值信息";
		}

		/// <summary>
		/// 根據樣本數據進行訓練
		/// </summary>
		/// <param name="path">訓練數據文件的路徑</param>
		/// <param name="db" > 訓練數據的元數據</param>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品在线看片z| 亚洲在线视频一区| 一区二区欧美精品| 久久精品久久综合| 色狠狠一区二区| 久久九九99视频| 欧美aaaaa成人免费观看视频| 成人国产在线观看| 精品国产乱码久久久久久夜甘婷婷 | 亚洲私人影院在线观看| 一区二区三区四区在线播放| 蜜桃久久久久久久| 99久久精品免费看| 久久综合色鬼综合色| 亚洲欧美国产三级| 国产一区二区三区电影在线观看 | 国产欧美一区二区精品忘忧草| 久久免费国产精品 | 日韩午夜电影在线观看| 911国产精品| 亚洲精品一区二区精华| 亚洲v日本v欧美v久久精品| 国产成人av在线影院| 这里只有精品视频在线观看| 中文字幕一区二区三区在线不卡 | 国产亚洲综合色| 午夜av一区二区三区| 91一区二区在线观看| 久久九九国产精品| 久久成人免费网| 欧美性感一类影片在线播放| 久久婷婷国产综合精品青草| 亚洲观看高清完整版在线观看| 国产精品亚洲第一区在线暖暖韩国| 欧美中文字幕一区二区三区 | 99精品在线观看视频| 精品国产乱码久久久久久蜜臀| 亚洲午夜私人影院| 91色.com| 中文字幕亚洲视频| 国产不卡视频在线播放| 26uuu色噜噜精品一区| 日本伊人精品一区二区三区观看方式| 99久久精品国产观看| 久久久久久免费网| 国产一区二区三区免费观看| 日韩欧美电影一区| 日韩av电影一区| 欧美日本在线播放| 亚洲成人黄色小说| 欧美日韩视频专区在线播放| 亚洲一二三专区| 在线观看欧美日本| 亚洲国产日韩在线一区模特 | 国产自产2019最新不卡| 日韩一区二区在线观看| 日韩成人av影视| 欧美一区二区三区在线观看| 日韩精品午夜视频| 日韩一区二区三区免费看 | 国产视频一区不卡| 国产成人免费视频 | 欧美怡红院视频| 一区二区三区欧美亚洲| 欧美日韩视频一区二区| 午夜视频一区二区三区| 欧美精品第1页| 捆绑变态av一区二区三区| 久久综合丝袜日本网| 国产成人av影院| 一区二区三区中文字幕| 69堂精品视频| 午夜伊人狠狠久久| 欧美一级在线免费| 福利视频网站一区二区三区| 国产精品久久久久aaaa樱花| 色综合色综合色综合| 婷婷国产在线综合| 久久综合色综合88| 色婷婷综合久久久久中文 | 亚洲国产精品v| 色噜噜久久综合| 另类欧美日韩国产在线| 亚洲国产精品黑人久久久| 欧美在线视频日韩| 久久av资源站| 国产欧美精品国产国产专区| 91久久香蕉国产日韩欧美9色| 丝袜亚洲精品中文字幕一区| 欧美日韩精品福利| 日韩高清在线电影| 日本一区二区三区高清不卡| 欧美亚一区二区| 国产美女视频一区| 亚洲高清免费观看| 国产精品网站一区| 91精品国产麻豆| 99精品久久只有精品| 日本成人在线看| 伊人婷婷欧美激情| 久久色.com| 欧美日韩一区 二区 三区 久久精品| 免费成人av在线播放| 亚洲欧美另类久久久精品| 欧美大片日本大片免费观看| 91麻豆蜜桃一区二区三区| 极品瑜伽女神91| 亚洲成人先锋电影| 国产精品拍天天在线| 日韩一级黄色大片| 色就色 综合激情| 大尺度一区二区| 久久国产精品第一页| 亚洲综合精品久久| 国产精品久久久久久一区二区三区| 欧美精品第1页| 欧美三级视频在线观看| youjizz国产精品| 国产成人免费视频精品含羞草妖精 | 成人免费一区二区三区视频| 精品国产乱码久久久久久影片| 欧美在线观看18| 99久久综合国产精品| 国产精品一色哟哟哟| 精品亚洲成a人| 欧美aaaaaa午夜精品| 日韩成人免费电影| 亚洲天堂久久久久久久| 国产精品女同互慰在线看| 久久美女高清视频| 久久婷婷国产综合精品青草| 色噜噜狠狠成人中文综合| 风间由美一区二区三区在线观看| 欧美aaa在线| 日韩电影在线一区二区三区| 一区二区久久久| 亚洲精品视频在线观看网站| 亚洲精品欧美综合四区| 亚洲精品高清在线观看| 一区二区三区日韩欧美精品 | 国产激情精品久久久第一区二区 | 日韩视频一区二区三区在线播放| 欧美在线观看18| 91麻豆精品国产91久久久| 7777女厕盗摄久久久| 精品国产一区二区精华| 国产亚洲综合在线| 中文字幕一区二区三区av| 国产精品久久久久久久久搜平片 | 久久婷婷综合激情| 国产日韩欧美激情| 国产精品美日韩| 一区二区成人在线视频| 视频在线观看一区| 青青草精品视频| 国产精一区二区三区| 91视频免费看| 91超碰这里只有精品国产| 日韩午夜电影av| 国产精品国产精品国产专区不片| 亚洲欧美激情插| 人人超碰91尤物精品国产| 狠狠色丁香婷婷综合久久片| 成人激情免费电影网址| 日本丶国产丶欧美色综合| 欧美福利一区二区| 制服丝袜亚洲网站| 国产亚洲1区2区3区| 亚洲欧美视频在线观看| 男女激情视频一区| 美女尤物国产一区| 91视频国产观看| 欧美一二三四区在线| 日韩理论片一区二区| 美女脱光内衣内裤视频久久网站| 国产福利一区二区三区视频在线| 91亚洲国产成人精品一区二区三| 欧美一区欧美二区| 中文字幕综合网| 久久国产精品色| 欧美综合一区二区三区| 精品国产乱子伦一区| 亚洲一区二区三区四区中文字幕| 激情综合色综合久久| 91福利精品视频| 国产亚洲一区二区三区四区| 亚洲国产cao| 99视频在线观看一区三区| 日韩一区国产二区欧美三区| 国产精品家庭影院| 极品少妇一区二区三区精品视频| 91天堂素人约啪| 国产色婷婷亚洲99精品小说| 午夜精品福利一区二区三区av| 成人激情开心网| 久久综合九色综合久久久精品综合| 午夜日韩在线观看| 欧美伊人久久大香线蕉综合69| 中文在线免费一区三区高中清不卡| 午夜不卡av在线|