addtestdata.cs

来自「基于决策树和贝叶斯的预测分析器」· CS 代码 · 共 60 行

CS
60
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DecisionTreeAlgorithm;
using DecisionTree;
using System.Collections;

namespace DecisionTreeAlgorithm
{
    public partial class AddTestData : Form
    {
        //struct Item
        //{
        //    public int ID;
        //    public ageType age;
        //    public native_countryType native_country;
        //    public educationType education;
        //    public occupationType occupation;
        //    public makeover50kType makeover50k;
        //}
        //private ArrayList attributeList;
        //public AddTestData()
        //{
        //    InitializeComponent();
        //}

        //private void AddTestDate_Load(object sender, EventArgs e)
        //{
        //    cbAge.Items.Add("youth");
        //    cbAge.Items.Add("middle_aged");
        //    cbAge.Items.Add("senior ");
        //    comboBox2.Items.Add("developing");
        //    comboBox2.Items.Add("developed");
        //    comboBox2.Items.Add("verydeveloped");
        //    comboBox3.Items.Add("yes");
        //    comboBox3.Items.Add("no");
        //    comboBox4.Items.Add("normal");
        //    comboBox4.Items.Add("excellent");
        //    comboBox5.Items.Add("yes");
        //    comboBox5.Items.Add("no ");
        //    comboBox5.Items.Add("");
        //}

        //private void button1_Click(object sender, EventArgs e)
        //{
        //    Item testItem = new Item();
        //    testItem.age = cbAge.SelectedValue;
        //    testItem.education = comboBox2.SelectedValue;
        //    testItem.native_country = comboBox3.SelectedValue;
        //    testItem.occupation = comboBox4.SelectedValue;
        //    testItem.makeover50k = comboBox5.SelectedValue;


        //}
    }
}

⌨️ 快捷键说明

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