SlideShare a Scribd company logo
1 of 9
Root Cause of Community Problem
For this discussion, you will identify three root causes of the
community need you have selected for your grant proposal (see
Week One). In addition, you will identify the effects of the
problem and your proposed solution. This is a brainstorming
activity to start you thinking about the problem and its
solutions. Use your creativity, and rely on your appreciation for
innovation. You are not committed to any solutions at this
point; you will have the opportunity to make a selection later in
the course.
Download the Problem Tree Download Problem Treeexample
and the Problem Tree Template Download Problem Tree
Templateto create your problem tree for your community need.
This activity will help you create your problem statement for
this week’s discussion.
Example: What is the problem? Increased high school drop rate
in a community. What are the possible root causes? Lack of
education, lack of parental supervision, low income, etc. Now,
look at the problem as the symptom or outcome of the identified
causes and begin to envision possible solutions. Use the image
of a tree to organize the information that you have obtained.
· What is the problem? (trunk)
· What are the roots of the problem?
· List causes at root.(three to four)
· What are the effects?
· List effects on the branches. (three to four)
· What is your solution?
· List solutions on the leaves. (five to eight)
Programming Fundamentals
Programming Assignment 3 – Machine Learning
Introduction
Machine learning is an area of computer science whose aim is to
create programs which improve their
performance with experience. There are many applications for
this, including: face recognition, recommendation
systems, defect detection, robot navigation, and game playing.
For this assignment, you will implement a simple
machine learning algorithm called Nearest Neighbor which
learns by remembering training examples. It then
classifies test examples by choosing the class of the “closest”
training example. The notion of “closeness” differs
depending on applications. You will need to use the Nearest
Neighbor algorithm to learn and classify types of Iris
plants based on their sepal and petal length and width. There are
three Iris types you will need to classify:
Iris Setosa Iris Versicolour Iris Virginica
The learning will be done by remembering training examples
stored in a comma-separated file. The training
examples include different measurements which collectively are
called attributes and a class label for different
instances, including:
1. sepal length in cm
2. sepal width in cm
3. petal length in cm
4. petal width in cm
5. class:
-- Iris Setosa
-- Iris Versicolour
-- Iris Virginica
To see how well the program “learned”, you will then load a file
containing testing examples, which will include the
same type of information, but for different instances. For each
test instance, you will apply the Nearest Neighbor
algorithm to classify the instance. This algorithm works by
choosing a class label of the “closest” training example,
where “closest” means shortest distance. The distance is
computed using the following formula:
����(�, �) = √(��� − ���)
2
+ (��� − ���)
2
+ (��� − ���)
2
+ (��� − ���)
2
where �, � are two instances (i.e. a training or a testing
example), ���,��� are their sepal lengths, ���,��� are
their sepal widths, ���,��� are their petal lengths, and
���,��� are their petal widths.
After you finish classifying each testing instance, you will then
need to compare it to the “true” label that is
specified for each example and compute the accuracy. Accuracy
is measured as the number of correctly classified
instances divided by the number of total testing instances.
Requirements
You are to create a program in Java that performs the following:
1. Prompts the user to enter filenames for the training and the
testing dataset files.
2. Loads and parses the training and testing dataset files into
separate arrays. Given what you know, the
easiest way to do this is to create four separate arrays:
• 2D array of doubles for storing training example attribute
values
• 2D array of doubles for storing testing example attribute
values
• 1D array of Strings for storing training example class labels
• 1D array of Strings for storing testing example class labels
You can assume there are exactly 75 training and 75 testing
examples.
3. Classifies each testing example. You also need to output the
true and predicted class label to the screen
and save it into a new 1D array of Strings. This is done by
iterating over the array of testing examples and
computing the index of the closest training example. Then
copying over the class label of the found
training example into the new 1D array for the corresponding
index.
4. Computes the accuracy. Go through the array of class labels
for testing examples and compare the label
stored in the array created in step 3. Count how many matches
you get. Output the number of matches,
divided by the number of testing examples.
Additional Requirements
1. The name of your Java Class that contains the main method
should be NearestNeighbor. All your
code should be within a single file.
2. You will need to decompose your code into separate methods
that implement the various parts of the
program. For example, you can have a method that computes the
index of the nearest training example,
given some attribute values. In general, whenever your methods
have too many lines of code, you should
think about separating some of the functionality into methods.
A good rule of thumb is to start thinking
about method decomposition with methods over 15 lines, but
sometimes 20 or 30 lines is still OK.
3. Your code should follow good coding practices, including
good use of whitespace (indents and line breaks)
and use of both inline and block comments.
4. You need to use meaningful identifier names that conform to
standard Java naming conventions.
5. At the top of each file, you need to put in a block comment
with the following information: your name,
date, course name, semester, and assignment name.
6. The output of your program should exactly match the sample
program output given at the end.
What to Turn In
You will turn in the single NearestNeighbor.java file using
BlackBoard.
What You Need to Know for This Assignment
• Using arrays
• Using the Scanner to load and parse a file
• Using loops
• Writing methods
HINT:
You can use the split(",") method of the String class to extract
the different values on each line of the file. It
returns a String array which you can then parse using
Integer.parseDouble() metod to get the double
value.
Sample Program Output
Programming Fundamentals
NAME: [put your name here]
PROGRAMMING ASSIGNMENT 3
Enter the name of the training file: iris-training-data.csv
Enter the name of the testing file: iris-testing-data.csv
EX#: TRUE LABEL, PREDICTED LABEL
1: Iris-setosa Iris-setosa
2: Iris-setosa Iris-setosa
3: Iris-setosa Iris-setosa
4: Iris-setosa Iris-setosa
5: Iris-setosa Iris-setosa
6: Iris-setosa Iris-setosa
7: Iris-setosa Iris-setosa
8: Iris-setosa Iris-setosa
9: Iris-setosa Iris-setosa
10: Iris-setosa Iris-setosa
11: Iris-setosa Iris-setosa
12: Iris-setosa Iris-setosa
13: Iris-setosa Iris-setosa
14: Iris-setosa Iris-setosa
15: Iris-setosa Iris-setosa
16: Iris-setosa Iris-setosa
17: Iris-setosa Iris-setosa
18: Iris-setosa Iris-setosa
19: Iris-setosa Iris-setosa
20: Iris-setosa Iris-setosa
21: Iris-setosa Iris-setosa
22: Iris-setosa Iris-setosa
23: Iris-setosa Iris-setosa
24: Iris-setosa Iris-setosa
25: Iris-setosa Iris-setosa
26: Iris-versicolor Iris-versicolor
27: Iris-versicolor Iris-versicolor
28: Iris-versicolor Iris-versicolor
29: Iris-versicolor Iris-versicolor
30: Iris-versicolor Iris-versicolor
31: Iris-versicolor Iris-versicolor
32: Iris-versicolor Iris-versicolor
33: Iris-versicolor Iris-versicolor
34: Iris-versicolor Iris-virginica
35: Iris-versicolor Iris-versicolor
36: Iris-versicolor Iris-versicolor
37: Iris-versicolor Iris-versicolor
38: Iris-versicolor Iris-versicolor
39: Iris-versicolor Iris-versicolor
40: Iris-versicolor Iris-versicolor
41: Iris-versicolor Iris-versicolor
42: Iris-versicolor Iris-versicolor
43: Iris-versicolor Iris-versicolor
44: Iris-versicolor Iris-versicolor
45: Iris-versicolor Iris-versicolor
46: Iris-versicolor Iris-versicolor
47: Iris-versicolor Iris-versicolor
48: Iris-versicolor Iris-versicolor
49: Iris-versicolor Iris-versicolor
50: Iris-versicolor Iris-versicolor
51: Iris-virginica Iris-virginica
52: Iris-virginica Iris-virginica
53: Iris-virginica Iris-versicolor
54: Iris-virginica Iris-virginica
55: Iris-virginica Iris-virginica
56: Iris-virginica Iris-virginica
57: Iris-virginica Iris-virginica
58: Iris-virginica Iris-virginica
59: Iris-virginica Iris-versicolor
60: Iris-virginica Iris-virginica
61: Iris-virginica Iris-virginica
62: Iris-virginica Iris-virginica
63: Iris-virginica Iris-virginica
64: Iris-virginica Iris-versicolor
65: Iris-virginica Iris-virginica
66: Iris-virginica Iris-virginica
67: Iris-virginica Iris-virginica
68: Iris-virginica Iris-virginica
69: Iris-virginica Iris-virginica
70: Iris-virginica Iris-virginica
71: Iris-virginica Iris-virginica
72: Iris-virginica Iris-virginica
73: Iris-virginica Iris-virginica
74: Iris-virginica Iris-virginica
75: Iris-virginica Iris-virginica
ACCURACY: 0.9466666666666667

More Related Content

Similar to Root cause of community problem for this discussion, you will i

Machine learning and decision trees
Machine learning and decision treesMachine learning and decision trees
Machine learning and decision treesPadma Metta
 
Section1 compound data class
Section1 compound data classSection1 compound data class
Section1 compound data classDương Tùng
 
Start machine learning in 5 simple steps
Start machine learning in 5 simple stepsStart machine learning in 5 simple steps
Start machine learning in 5 simple stepsRenjith M P
 
Lab exp declaring arrays)
Lab exp declaring arrays)Lab exp declaring arrays)
Lab exp declaring arrays)Daman Toor
 
Data mining techniques using weka
Data mining techniques using wekaData mining techniques using weka
Data mining techniques using wekarathorenitin87
 
java traning report_Summer.docx
java traning report_Summer.docxjava traning report_Summer.docx
java traning report_Summer.docxGauravSharma164138
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newdixonbakerr
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo40
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newcharlesangles123
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newchanduruc123
 
JAVA-PPT'S.pptx
JAVA-PPT'S.pptxJAVA-PPT'S.pptx
JAVA-PPT'S.pptxRaazIndia
 
JAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S-complete-chrome.pptxJAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S-complete-chrome.pptxKunalYadav65140
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo16
 
Csec 640 Enthusiastic Study / snaptutorial.com
Csec 640 Enthusiastic Study / snaptutorial.comCsec 640 Enthusiastic Study / snaptutorial.com
Csec 640 Enthusiastic Study / snaptutorial.comStephenson54
 
Machine learning and types
Machine learning and typesMachine learning and types
Machine learning and typesPadma Metta
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newuopassignment
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newlroselyn
 
Best practices in enterprise applications
Best practices in enterprise applicationsBest practices in enterprise applications
Best practices in enterprise applicationsChandra Sekhar Saripaka
 
Unit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptxUnit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptxDrYogeshDeshmukh1
 

Similar to Root cause of community problem for this discussion, you will i (20)

Machine learning and decision trees
Machine learning and decision treesMachine learning and decision trees
Machine learning and decision trees
 
Section1 compound data class
Section1 compound data classSection1 compound data class
Section1 compound data class
 
Start machine learning in 5 simple steps
Start machine learning in 5 simple stepsStart machine learning in 5 simple steps
Start machine learning in 5 simple steps
 
Lab exp declaring arrays)
Lab exp declaring arrays)Lab exp declaring arrays)
Lab exp declaring arrays)
 
Data mining techniques using weka
Data mining techniques using wekaData mining techniques using weka
Data mining techniques using weka
 
java traning report_Summer.docx
java traning report_Summer.docxjava traning report_Summer.docx
java traning report_Summer.docx
 
JAVA-PPT'S.pdf
JAVA-PPT'S.pdfJAVA-PPT'S.pdf
JAVA-PPT'S.pdf
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
JAVA-PPT'S.pptx
JAVA-PPT'S.pptxJAVA-PPT'S.pptx
JAVA-PPT'S.pptx
 
JAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S-complete-chrome.pptxJAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S-complete-chrome.pptx
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Csec 640 Enthusiastic Study / snaptutorial.com
Csec 640 Enthusiastic Study / snaptutorial.comCsec 640 Enthusiastic Study / snaptutorial.com
Csec 640 Enthusiastic Study / snaptutorial.com
 
Machine learning and types
Machine learning and typesMachine learning and types
Machine learning and types
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Best practices in enterprise applications
Best practices in enterprise applicationsBest practices in enterprise applications
Best practices in enterprise applications
 
Unit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptxUnit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptx
 

More from ssusere73ce3

Successful writing at work copyright 2017 cengage learn
Successful writing at work copyright 2017 cengage learnSuccessful writing at work copyright 2017 cengage learn
Successful writing at work copyright 2017 cengage learnssusere73ce3
 
Students will  answer the following questions in complete sentences
Students will  answer the following questions in complete sentencesStudents will  answer the following questions in complete sentences
Students will  answer the following questions in complete sentencesssusere73ce3
 
Student name michel garcia tapanes _____________________________
Student name   michel garcia tapanes _____________________________Student name   michel garcia tapanes _____________________________
Student name michel garcia tapanes _____________________________ssusere73ce3
 
Student 1 wk 1 discussion manufacturing functions are disorgan
Student 1 wk 1 discussion manufacturing functions are disorganStudent 1 wk 1 discussion manufacturing functions are disorgan
Student 1 wk 1 discussion manufacturing functions are disorganssusere73ce3
 
Stu65717 fm i-x.indd i 053017 0244 pm_practices of
Stu65717 fm i-x.indd i 053017  0244 pm_practices of Stu65717 fm i-x.indd i 053017  0244 pm_practices of
Stu65717 fm i-x.indd i 053017 0244 pm_practices of ssusere73ce3
 
Strategic management theory and practicestrategic contro
Strategic management theory and practicestrategic controStrategic management theory and practicestrategic contro
Strategic management theory and practicestrategic controssusere73ce3
 
Ste67472 ch05s 220-241.indd 220 010617 0728 pm220_s
Ste67472 ch05s 220-241.indd 220 010617  0728 pm220_sSte67472 ch05s 220-241.indd 220 010617  0728 pm220_s
Ste67472 ch05s 220-241.indd 220 010617 0728 pm220_sssusere73ce3
 
Sheet1 note all answers must be in your own words. quoted passage
Sheet1 note  all answers must be in your own words. quoted passageSheet1 note  all answers must be in your own words. quoted passage
Sheet1 note all answers must be in your own words. quoted passagessusere73ce3
 
Sheet1 employee id last namefirst namedepartmentsalary212-05allisonj
Sheet1 employee id last namefirst namedepartmentsalary212-05allisonjSheet1 employee id last namefirst namedepartmentsalary212-05allisonj
Sheet1 employee id last namefirst namedepartmentsalary212-05allisonjssusere73ce3
 
Several organizations publish occupational exposure limits (oe ls)
Several organizations publish occupational exposure limits (oe ls) Several organizations publish occupational exposure limits (oe ls)
Several organizations publish occupational exposure limits (oe ls) ssusere73ce3
 
Sensitivity general internal sensitivity
Sensitivity general internal sensitivitySensitivity general internal sensitivity
Sensitivity general internal sensitivityssusere73ce3
 
See chapter 11 from the textbook attached, the article by baez (2013
See chapter 11 from the textbook attached, the article by baez (2013See chapter 11 from the textbook attached, the article by baez (2013
See chapter 11 from the textbook attached, the article by baez (2013ssusere73ce3
 
School of computer & information sciences its 532 cloud c
School of computer & information sciences its 532 cloud cSchool of computer & information sciences its 532 cloud c
School of computer & information sciences its 532 cloud cssusere73ce3
 
Running head rough draft1 rough draft 15
Running head rough draft1 rough draft 15Running head rough draft1 rough draft 15
Running head rough draft1 rough draft 15ssusere73ce3
 
Running head matrix of community partnering opportunities1
Running head matrix of community partnering opportunities1Running head matrix of community partnering opportunities1
Running head matrix of community partnering opportunities1ssusere73ce3
 
Running head introduction to the problem 1 intro
Running head introduction to the problem          1 introRunning head introduction to the problem          1 intro
Running head introduction to the problem 1 introssusere73ce3
 
Running head image of police and peoples’ safety 1 imag
Running head image of police and peoples’ safety 1 imagRunning head image of police and peoples’ safety 1 imag
Running head image of police and peoples’ safety 1 imagssusere73ce3
 
Running head evidence based practice week 4
Running head evidence based practice week 4                    Running head evidence based practice week 4
Running head evidence based practice week 4 ssusere73ce3
 
Running head covid 19 pandemic in the u.s.a.
Running head covid 19 pandemic in the u.s.a.                     Running head covid 19 pandemic in the u.s.a.
Running head covid 19 pandemic in the u.s.a. ssusere73ce3
 
Running head business writing2 business writing2assign
Running head business writing2 business writing2assignRunning head business writing2 business writing2assign
Running head business writing2 business writing2assignssusere73ce3
 

More from ssusere73ce3 (20)

Successful writing at work copyright 2017 cengage learn
Successful writing at work copyright 2017 cengage learnSuccessful writing at work copyright 2017 cengage learn
Successful writing at work copyright 2017 cengage learn
 
Students will  answer the following questions in complete sentences
Students will  answer the following questions in complete sentencesStudents will  answer the following questions in complete sentences
Students will  answer the following questions in complete sentences
 
Student name michel garcia tapanes _____________________________
Student name   michel garcia tapanes _____________________________Student name   michel garcia tapanes _____________________________
Student name michel garcia tapanes _____________________________
 
Student 1 wk 1 discussion manufacturing functions are disorgan
Student 1 wk 1 discussion manufacturing functions are disorganStudent 1 wk 1 discussion manufacturing functions are disorgan
Student 1 wk 1 discussion manufacturing functions are disorgan
 
Stu65717 fm i-x.indd i 053017 0244 pm_practices of
Stu65717 fm i-x.indd i 053017  0244 pm_practices of Stu65717 fm i-x.indd i 053017  0244 pm_practices of
Stu65717 fm i-x.indd i 053017 0244 pm_practices of
 
Strategic management theory and practicestrategic contro
Strategic management theory and practicestrategic controStrategic management theory and practicestrategic contro
Strategic management theory and practicestrategic contro
 
Ste67472 ch05s 220-241.indd 220 010617 0728 pm220_s
Ste67472 ch05s 220-241.indd 220 010617  0728 pm220_sSte67472 ch05s 220-241.indd 220 010617  0728 pm220_s
Ste67472 ch05s 220-241.indd 220 010617 0728 pm220_s
 
Sheet1 note all answers must be in your own words. quoted passage
Sheet1 note  all answers must be in your own words. quoted passageSheet1 note  all answers must be in your own words. quoted passage
Sheet1 note all answers must be in your own words. quoted passage
 
Sheet1 employee id last namefirst namedepartmentsalary212-05allisonj
Sheet1 employee id last namefirst namedepartmentsalary212-05allisonjSheet1 employee id last namefirst namedepartmentsalary212-05allisonj
Sheet1 employee id last namefirst namedepartmentsalary212-05allisonj
 
Several organizations publish occupational exposure limits (oe ls)
Several organizations publish occupational exposure limits (oe ls) Several organizations publish occupational exposure limits (oe ls)
Several organizations publish occupational exposure limits (oe ls)
 
Sensitivity general internal sensitivity
Sensitivity general internal sensitivitySensitivity general internal sensitivity
Sensitivity general internal sensitivity
 
See chapter 11 from the textbook attached, the article by baez (2013
See chapter 11 from the textbook attached, the article by baez (2013See chapter 11 from the textbook attached, the article by baez (2013
See chapter 11 from the textbook attached, the article by baez (2013
 
School of computer & information sciences its 532 cloud c
School of computer & information sciences its 532 cloud cSchool of computer & information sciences its 532 cloud c
School of computer & information sciences its 532 cloud c
 
Running head rough draft1 rough draft 15
Running head rough draft1 rough draft 15Running head rough draft1 rough draft 15
Running head rough draft1 rough draft 15
 
Running head matrix of community partnering opportunities1
Running head matrix of community partnering opportunities1Running head matrix of community partnering opportunities1
Running head matrix of community partnering opportunities1
 
Running head introduction to the problem 1 intro
Running head introduction to the problem          1 introRunning head introduction to the problem          1 intro
Running head introduction to the problem 1 intro
 
Running head image of police and peoples’ safety 1 imag
Running head image of police and peoples’ safety 1 imagRunning head image of police and peoples’ safety 1 imag
Running head image of police and peoples’ safety 1 imag
 
Running head evidence based practice week 4
Running head evidence based practice week 4                    Running head evidence based practice week 4
Running head evidence based practice week 4
 
Running head covid 19 pandemic in the u.s.a.
Running head covid 19 pandemic in the u.s.a.                     Running head covid 19 pandemic in the u.s.a.
Running head covid 19 pandemic in the u.s.a.
 
Running head business writing2 business writing2assign
Running head business writing2 business writing2assignRunning head business writing2 business writing2assign
Running head business writing2 business writing2assign
 

Recently uploaded

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Root cause of community problem for this discussion, you will i

  • 1. Root Cause of Community Problem For this discussion, you will identify three root causes of the community need you have selected for your grant proposal (see Week One). In addition, you will identify the effects of the problem and your proposed solution. This is a brainstorming activity to start you thinking about the problem and its solutions. Use your creativity, and rely on your appreciation for innovation. You are not committed to any solutions at this point; you will have the opportunity to make a selection later in the course. Download the Problem Tree Download Problem Treeexample and the Problem Tree Template Download Problem Tree Templateto create your problem tree for your community need. This activity will help you create your problem statement for this week’s discussion. Example: What is the problem? Increased high school drop rate in a community. What are the possible root causes? Lack of education, lack of parental supervision, low income, etc. Now, look at the problem as the symptom or outcome of the identified causes and begin to envision possible solutions. Use the image of a tree to organize the information that you have obtained. · What is the problem? (trunk) · What are the roots of the problem? · List causes at root.(three to four) · What are the effects? · List effects on the branches. (three to four) · What is your solution? · List solutions on the leaves. (five to eight)
  • 2. Programming Fundamentals Programming Assignment 3 – Machine Learning Introduction Machine learning is an area of computer science whose aim is to create programs which improve their performance with experience. There are many applications for this, including: face recognition, recommendation systems, defect detection, robot navigation, and game playing. For this assignment, you will implement a simple machine learning algorithm called Nearest Neighbor which learns by remembering training examples. It then classifies test examples by choosing the class of the “closest” training example. The notion of “closeness” differs depending on applications. You will need to use the Nearest Neighbor algorithm to learn and classify types of Iris plants based on their sepal and petal length and width. There are three Iris types you will need to classify: Iris Setosa Iris Versicolour Iris Virginica The learning will be done by remembering training examples stored in a comma-separated file. The training examples include different measurements which collectively are called attributes and a class label for different instances, including: 1. sepal length in cm 2. sepal width in cm 3. petal length in cm 4. petal width in cm 5. class:
  • 3. -- Iris Setosa -- Iris Versicolour -- Iris Virginica To see how well the program “learned”, you will then load a file containing testing examples, which will include the same type of information, but for different instances. For each test instance, you will apply the Nearest Neighbor algorithm to classify the instance. This algorithm works by choosing a class label of the “closest” training example, where “closest” means shortest distance. The distance is computed using the following formula: ����(�, �) = √(��� − ���) 2 + (��� − ���) 2 + (��� − ���) 2 + (��� − ���) 2 where �, � are two instances (i.e. a training or a testing example), ���,��� are their sepal lengths, ���,��� are their sepal widths, ���,��� are their petal lengths, and ���,��� are their petal widths. After you finish classifying each testing instance, you will then need to compare it to the “true” label that is specified for each example and compute the accuracy. Accuracy
  • 4. is measured as the number of correctly classified instances divided by the number of total testing instances. Requirements You are to create a program in Java that performs the following: 1. Prompts the user to enter filenames for the training and the testing dataset files. 2. Loads and parses the training and testing dataset files into separate arrays. Given what you know, the easiest way to do this is to create four separate arrays: • 2D array of doubles for storing training example attribute values • 2D array of doubles for storing testing example attribute values • 1D array of Strings for storing training example class labels • 1D array of Strings for storing testing example class labels You can assume there are exactly 75 training and 75 testing examples. 3. Classifies each testing example. You also need to output the true and predicted class label to the screen and save it into a new 1D array of Strings. This is done by iterating over the array of testing examples and computing the index of the closest training example. Then copying over the class label of the found training example into the new 1D array for the corresponding
  • 5. index. 4. Computes the accuracy. Go through the array of class labels for testing examples and compare the label stored in the array created in step 3. Count how many matches you get. Output the number of matches, divided by the number of testing examples. Additional Requirements 1. The name of your Java Class that contains the main method should be NearestNeighbor. All your code should be within a single file. 2. You will need to decompose your code into separate methods that implement the various parts of the program. For example, you can have a method that computes the index of the nearest training example, given some attribute values. In general, whenever your methods have too many lines of code, you should think about separating some of the functionality into methods. A good rule of thumb is to start thinking about method decomposition with methods over 15 lines, but sometimes 20 or 30 lines is still OK. 3. Your code should follow good coding practices, including good use of whitespace (indents and line breaks) and use of both inline and block comments. 4. You need to use meaningful identifier names that conform to standard Java naming conventions. 5. At the top of each file, you need to put in a block comment with the following information: your name,
  • 6. date, course name, semester, and assignment name. 6. The output of your program should exactly match the sample program output given at the end. What to Turn In You will turn in the single NearestNeighbor.java file using BlackBoard. What You Need to Know for This Assignment • Using arrays • Using the Scanner to load and parse a file • Using loops • Writing methods HINT: You can use the split(",") method of the String class to extract the different values on each line of the file. It returns a String array which you can then parse using Integer.parseDouble() metod to get the double value. Sample Program Output
  • 7. Programming Fundamentals NAME: [put your name here] PROGRAMMING ASSIGNMENT 3 Enter the name of the training file: iris-training-data.csv Enter the name of the testing file: iris-testing-data.csv EX#: TRUE LABEL, PREDICTED LABEL 1: Iris-setosa Iris-setosa 2: Iris-setosa Iris-setosa 3: Iris-setosa Iris-setosa 4: Iris-setosa Iris-setosa 5: Iris-setosa Iris-setosa 6: Iris-setosa Iris-setosa 7: Iris-setosa Iris-setosa 8: Iris-setosa Iris-setosa 9: Iris-setosa Iris-setosa 10: Iris-setosa Iris-setosa 11: Iris-setosa Iris-setosa 12: Iris-setosa Iris-setosa 13: Iris-setosa Iris-setosa 14: Iris-setosa Iris-setosa 15: Iris-setosa Iris-setosa 16: Iris-setosa Iris-setosa 17: Iris-setosa Iris-setosa 18: Iris-setosa Iris-setosa 19: Iris-setosa Iris-setosa 20: Iris-setosa Iris-setosa 21: Iris-setosa Iris-setosa 22: Iris-setosa Iris-setosa 23: Iris-setosa Iris-setosa 24: Iris-setosa Iris-setosa 25: Iris-setosa Iris-setosa 26: Iris-versicolor Iris-versicolor 27: Iris-versicolor Iris-versicolor
  • 8. 28: Iris-versicolor Iris-versicolor 29: Iris-versicolor Iris-versicolor 30: Iris-versicolor Iris-versicolor 31: Iris-versicolor Iris-versicolor 32: Iris-versicolor Iris-versicolor 33: Iris-versicolor Iris-versicolor 34: Iris-versicolor Iris-virginica 35: Iris-versicolor Iris-versicolor 36: Iris-versicolor Iris-versicolor 37: Iris-versicolor Iris-versicolor 38: Iris-versicolor Iris-versicolor 39: Iris-versicolor Iris-versicolor 40: Iris-versicolor Iris-versicolor 41: Iris-versicolor Iris-versicolor 42: Iris-versicolor Iris-versicolor 43: Iris-versicolor Iris-versicolor 44: Iris-versicolor Iris-versicolor 45: Iris-versicolor Iris-versicolor 46: Iris-versicolor Iris-versicolor 47: Iris-versicolor Iris-versicolor 48: Iris-versicolor Iris-versicolor 49: Iris-versicolor Iris-versicolor 50: Iris-versicolor Iris-versicolor 51: Iris-virginica Iris-virginica 52: Iris-virginica Iris-virginica 53: Iris-virginica Iris-versicolor 54: Iris-virginica Iris-virginica 55: Iris-virginica Iris-virginica 56: Iris-virginica Iris-virginica 57: Iris-virginica Iris-virginica 58: Iris-virginica Iris-virginica 59: Iris-virginica Iris-versicolor 60: Iris-virginica Iris-virginica
  • 9. 61: Iris-virginica Iris-virginica 62: Iris-virginica Iris-virginica 63: Iris-virginica Iris-virginica 64: Iris-virginica Iris-versicolor 65: Iris-virginica Iris-virginica 66: Iris-virginica Iris-virginica 67: Iris-virginica Iris-virginica 68: Iris-virginica Iris-virginica 69: Iris-virginica Iris-virginica 70: Iris-virginica Iris-virginica 71: Iris-virginica Iris-virginica 72: Iris-virginica Iris-virginica 73: Iris-virginica Iris-virginica 74: Iris-virginica Iris-virginica 75: Iris-virginica Iris-virginica ACCURACY: 0.9466666666666667