logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

The area of a bean zone and the number of pixels within its boundaries

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

This homework deals with Bean data that we used in HW1. Each Bean is characterized by its 9 attributes:

 

1.) Area (A): The area of a bean zone and the number of pixels within its boundaries. 2.) Perimeter (P): Bean circumference is defined as the length of its border.

3.) Major axis length (L): The distance between the ends of the longest line that can be drawn from a bean.

 

4.) Minor axis length (l): The longest line that can be drawn from the bean while standing perpendicular to the main axis.

 

5.) Aspect ratio (K): Defines the relationship between L and l.

 

6.) Eccentricity (Ec): Eccentricity of the ellipse having the same moments as the region.

 

7.) Convex area (C): Number of pixels in the smallest convex polygon that can contain the area of a bean seed.

 

8.) Equivalent diameter (Ed): The diameter of a circle having the same area as a bean seed area. 9.) Class (Seker, Barbunya, Bombay, Cali, Dermosan, Horoz and Sira)

 

Using this data, answer the following questions.

 

Since the data has numerical values, first discretize them into enumerated type using the following scheme. Here, each value is divided into four types: LOW, MED, HIGH and V.HIGH, and range for each specified in the below table.

 

Category A (in K) P L I K Ec C (in K) Ed

LOW <50 <750 <250 <175 <1.25 <0.55 <30 <200

MED 50-80 750-1K 250-350 175-225 1.25-1.50 0.55-0.7 30-60 200-300

HIGH 80-100 1K-1200 350-500 225-300 1.50-1.75 0.7-0.8 60-100 300-400

V.HIGH >100 >1200 >500 >300 >1.75 >0.8 >100 >400

 

You are provided with the following training data.

 

A P L I K Ec C Ed Class

31823 663 223 182 1.23 0.58 32274 201 SEKER

27275 605 220 158 1.39 0.69 27604 186 DERMASON

32799 654 220 190 1.16 0.50 33087 204 SEKER

58434 981 396 190 2.09 0.88 59309 273 HOROZ

68513 1015 359 244 1.47 0.73 69406 295 BARBUNYA

85702 1107 428 257 1.66 0.80 86542 330 CALI

137358 1365 508 345 1.47 0.73 138093 418 BOMBAY

41643 769 295 181 1.63 0.79 42233 230 SIRA

68551 1025 356 246 1.45 0.72 69684 295 BARBUNYA

137115 1427 519 337 1.54 0.76 138970 418 BOMBAY

27277 605 218 159 1.37 0.68 27611 186 DERMASON

41646 762 286 186 1.53 0.76 42074 230 SIRA

85666 1119 436 251 1.73 0.82 86305 330 CALI

58454 965 392 196 2.00 0.87 60280 273 HOROZ

58484 956 382 197 1.94 0.86 59456 273 HOROZ

41646 768 288 186 1.55 0.76 42225 230 SIRA

27267 597 215 162 1.33 0.66 27575 186 DERMASON

 

Q1. Using manual computations (show your work), answer the following. SHOW YOUR WORK.

a. With Bean class as the outcome, and A,P, K, and ED as attributes, determine a rudimentary rule using 1R. Clearly state the final rule (with LHS and RHS) along with the related error.

b. Using Naïve Bayes technique, build the probability table (similar to Table 4.2).

c. Build a decision tree with Bean class as the outcome and A,P, K, and Ed as the attributes. (Show your work)

d. Using the above three models, predict the outcome for the following six items

 

A P K Ed

T1 43234 450 1.45 450

T2 65897 1390 1.10 155

T3 95678 890 1.65 280

T4 123678 1189 1.87 390

T5 45900 655 1.35 295

T6 89456 1035 1.75 305

 

 

Q2. Answer Q1 above by running Weka using 1R (rudimentary) and J48 (decision tree) algorithms.

 

 

What to submit? Submit a pdf file with your answers via the Canvas Your output should look like this:

Name Course HW# Q1. Work and results for Q1

Q2. Weka output for Q2

 

Summary of test runs (for the six unknown items)

 

 

(5/5)
Attachments:

Expert's Answer

512 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

512 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

668 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

872 Answers

Hire Me
expert
Husnain SaeedComputer science

602 Answers

Hire Me
expert
Atharva PatilComputer science

712 Answers

Hire Me
June
January
February
March
April
May
June
July
August
September
October
November
December
2025
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
00:00
00:30
01:00
01:30
02:00
02:30
03:00
03:30
04:00
04:30
05:00
05:30
06:00
06:30
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
20:00
20:30
21:00
21:30
22:00
22:30
23:00
23:30