Explain how you will fuzzify the attributes

Assignment Help Python Programming
Reference no: EM133036493

Assignment: Fuzzify a Decision Tree

Description: This assignment mixes theory and application, in the form of two problems. Perform the tasks described in each. Note that this (and other) assignments includes a few challenging research-related tasks. They are aimed at gradually building your capacity to tackle complex topics, familiarize yourself with academic discourse, and provide context and practice for the skills you will eventually need when working on your capstone thesis or project.

APA style is expected, as well as formal and rigorous scientific writing, using appropriate mathematical notation and references.

Part 1 - Decisions

People decide to drive a car or use public transportation to commute to work by weighing in such factors as weather and traffic. The following table describes the dataset D, containing data collected over a period of 14 days. The attributesare Temperature (x1),Wind (x2), and Traffic-Jam (x3); and the target variable is Car DrivingDecision (y).

Day s(i)

Temperature xi

Wind x2

Traffic-Jam x3

Car Driving y

s(1)

hot

weak

long

no

s(2)

hot

strong

long

no

s(3)

hot

weak

long

yes

s(4)

mild

weak

long

yes

s(5)

cool

weak

short

yes

s(6)

cool

strong

short

no

s(7)

cool

strong

short

yes

s(8)

mild

weak

long

no

s(9)

cool

weak

short

yes

s(10)

mild

weak

short

yes

s(11)

mild

strong

short

yes

s(12)  

mild

strong

long

yes

s(13)  

hot

weak

short

yes

s(14)  

mild

strong

long

no

Note that on 9 days, the decision is made to drive a car, whereas on the remaining 5 days, the decision is negative about driving a car.

You are tasked to create a decision tree that uses the above data to compute the decision on whether to drive a car, given the conditions depicted by the three variables in the table.

Consult the decision tree package, and using a Jupyter notebook, implement the following in Python:

a. Calculate the information gain for x1, x2 and x3.

b. Choose the root node for the decision tree.

c. Plot a partial decision tree from root node along with training examples sorted to each of its descendent nodes.

d. You are required to continue with the decision-tree growing process until all nodes are pure(they contain examples that all have the same classification).

e. Will it be possible to reach this situation for the given dataset? If not, why not? (Hint: Look for inconsistencies in the given dataset.)

f. Summarize the entire work in a technical report.

Part 2 - Fuzzy Decisions

You are tasked to modify the classifier tree in Part 1 so that it better mimics the way a human makes decisions. You will accomplish this by transforming the decision tree into a fuzzy decision tree.

In addition to the readings assigned in this topic, you may find it useful to read the techniques described in the "Combined Application of Decision Tree and Fuzzy Logic Techniques for Intelligent Grading of Dried Figs."
Answer the following and provide necessary Python code to help visualize your model:

a. Explain how you will fuzzify the attributes x1, x2 and x3.

b. Choose the root node for the fuzzy decision tree and defend your choice.

c. Plot a partial fuzzy decision tree from root node along with training examples sorted to each of its descendent nodes. Assume the dataset to be crisp, i.e., all membership functions satisfy:
µD(s(i)) = 1

d. As with Part 1, create a second report, detailing your approach to fuzzification of the decision tree.

Reference no: EM133036493

Questions Cloud

Discuss the significance of auditing in the real world : 1. Discuss the significance of auditing in the real world 2. What are audit internal controls and why are they significant?
Population variance using between-column variance : A study compared the effects of four 1 month point of purchase promotions on sales. The unit sales for five stores using all four promotions in different months
Calculate the cost of retained earnings : Calculate the cost of retained earnings, new ordinary shares, preference shares and long- term debt of Marx Ltd
Ethical and ethical behavior of individual : Explain how issue intensity can influence the ethical and ethical behavior of individual at the workplace?
Explain how you will fuzzify the attributes : Create a decision tree that uses the above data to compute the decision on whether to drive a car, given the conditions depicted by the three variables
What is the company cost of finished goods manufactured : The Brown Company's ending Work in Process Inventory amounted to $35,000 at the end of the year. What is the company's cost of finished goods manufactured
Discuss the improvements louis vuitton : Discuss the improvements Louis Vuitton should make to the way that they monitor their customer service for example include methods like data collection, staff s
Define organizational behaviour : How would you utilize this knowledge to better understand the organization you work for or might work for in the future?
Elaborate the definition of business ethics : QUESTION 1: Ethics is extremely important in both our personal and professional lives. Elaborate the definition of business ethics.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd