Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. decision tree

decision tree

Scheduled Pinned Locked Moved C / C++ / MFC
c++javagame-devdata-structures
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11430491
    wrote on last edited by
    #1

    Problem: This is our first programming assignment. This assignment has two parts:
    • Part 1: I ask you to write a program to build a decision tree using Gini impurity measurement to guide tree generation. The data set is the poker hand data set archived at UCI Machine Learning Repository: Poker Hand Data Set
    Data Set
    Characteristics: Multivariate Number of Instances: 1025010 Area: Game

    Attribute
    Characteristics: Categorical, Integer Number of Attributes: 11 Date Donated 2007-01-
    01

    Associated Tasks: Classification Missing Values? No Number of Web
    Hits: 212827

    You shall use the training data set to build your decision tree and then use the testing data set to evaluate your decision tree. You need to report classification accuracy using a bar chart and compare it with the distance based classification which is given in Part II.
    • Part II: For this part, I ask you to use the same training data set in Part I to build a distance-based classification model. Here, you need to find a good distance metric and a parameter k that serves as the threshold to bound the nearest neighbors for any given data item (or point). Then, you need to apply your model to the testing data set to evaluate your classification model. You shall record the classification accuracy and compare it in a
    bar chart with that of the decision tree model built in Part I.
    Programming Language:
    C++ or Java, but C++ is preferred.

    J D 2 Replies Last reply
    0
    • U User 11430491

      Problem: This is our first programming assignment. This assignment has two parts:
      • Part 1: I ask you to write a program to build a decision tree using Gini impurity measurement to guide tree generation. The data set is the poker hand data set archived at UCI Machine Learning Repository: Poker Hand Data Set
      Data Set
      Characteristics: Multivariate Number of Instances: 1025010 Area: Game

      Attribute
      Characteristics: Categorical, Integer Number of Attributes: 11 Date Donated 2007-01-
      01

      Associated Tasks: Classification Missing Values? No Number of Web
      Hits: 212827

      You shall use the training data set to build your decision tree and then use the testing data set to evaluate your decision tree. You need to report classification accuracy using a bar chart and compare it with the distance based classification which is given in Part II.
      • Part II: For this part, I ask you to use the same training data set in Part I to build a distance-based classification model. Here, you need to find a good distance metric and a parameter k that serves as the threshold to bound the nearest neighbors for any given data item (or point). Then, you need to apply your model to the testing data set to evaluate your classification model. You shall record the classification accuracy and compare it in a
      bar chart with that of the decision tree model built in Part I.
      Programming Language:
      C++ or Java, but C++ is preferred.

      J Offline
      J Offline
      jeron1
      wrote on last edited by
      #2

      Your first decision should be to read this[^]. Your homework won't be done here.

      "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst

      1 Reply Last reply
      0
      • U User 11430491

        Problem: This is our first programming assignment. This assignment has two parts:
        • Part 1: I ask you to write a program to build a decision tree using Gini impurity measurement to guide tree generation. The data set is the poker hand data set archived at UCI Machine Learning Repository: Poker Hand Data Set
        Data Set
        Characteristics: Multivariate Number of Instances: 1025010 Area: Game

        Attribute
        Characteristics: Categorical, Integer Number of Attributes: 11 Date Donated 2007-01-
        01

        Associated Tasks: Classification Missing Values? No Number of Web
        Hits: 212827

        You shall use the training data set to build your decision tree and then use the testing data set to evaluate your decision tree. You need to report classification accuracy using a bar chart and compare it with the distance based classification which is given in Part II.
        • Part II: For this part, I ask you to use the same training data set in Part I to build a distance-based classification model. Here, you need to find a good distance metric and a parameter k that serves as the threshold to bound the nearest neighbors for any given data item (or point). Then, you need to apply your model to the testing data set to evaluate your classification model. You shall record the classification accuracy and compare it in a
        bar chart with that of the decision tree model built in Part I.
        Programming Language:
        C++ or Java, but C++ is preferred.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Was this handed out in the 10am or 11am CS class with Professor Lewis?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups