Write the final weight vector as an equation

Assignment Help Other Subject
Reference no: EM13968236

All the perceptron questions below must be answered by writing a program in the language of your choice that implements the perceptron algorithm given in class. The program should take as input a FILE in this format:

sample_vector class

for the example below the first class should appear as:

0 0 0

0 1 0

---> the class is 0

Notice that the vectors are NOT augmented in the file.

Unless instructed by the problem, all weight vectors must start a 0

This code must be submitted with your answers and I will carefully check each submission

1. Take the original perceptron problem done in class:

class 1: (0,0) and (0,1)

class 2. (1,0) and (1,1)

however: instead of starting the weight vector at (0, 0) start it at (3,-1). So we all get the same answer, the AUGMENTED weight vector should be (3,-1,0)

ANSWER THE FOLLOWING QUESTIONS

(A) what is the final weight vector?

(b) graph the final weight vector

Absolutely no credit given with all the supporting work - all calculations for 1(a) above

2. consider the following points:

class 1: (0 0 -4 1), (2 3 -4 1), (12 14 -4 1)

class 2: (0 0 5 1) , (2 3 5 1), (12 14 5 1)

(a) what is the final weight vector?

(b) write the final weight vector as an equation

3. on page 765 of the text , (Norvig 3rd ed) problem 18.12 asked you to make a decision list and gives you some data. Forget that!

(a) Instead , use Weka to make a decision tree (the easiest thing to do is simply look at an existing ARF file , see the format, and make your own ARF file in the Weka data folder. Dump the decision tree and submit it.

(b) run the perceptron algorithm on the same data.

(1) does the algorithm converge? If so, what is the final weight vector?

(2) if it does not converge, give at least one data point that causes the non convergence of the algorithm

Absolutely no credit given with all the supporting work - all calculations for 2(a) above

4. By hand calculation determine the entropies of the weather NOMINAL dataset included with Weka

(a) give the initial value of the entropy calculation of the Windy Attribute

(b) after the root OUTLOOK is selected, give the value of the value of the remaining attributes under the sunny SUBTREE.

-> Take problem 1 but change the perceptron algorithm to start over again from the first point whenever a misclassification occurs. (The original Algorithm states we go through all the examples in order regardless of whether misclassify or not).

What is the final weight vector using the modified perception algorithm?

Reference no: EM13968236

Questions Cloud

Drivers drive scheduled routes between the cities : Steve is a contract carrier for the United States Postal Service. He has been hauling mail for nearly thirty years. His current contract is to haul mail between 20 cities in the eleven western states. Steve currently has a fleet of 16 tractors and em..
What is the hospitals float : Suppose a hospital writes checks of $100,000 per day and it takes, on average, 7 days for those to be received and clear the banking system. Furthermore, the hospital receives $120,000 in checks daily that take 4 days to be deposited and credited. Wh..
What is informal communication explain its different channel : Define Q2 a Financial statement B ratio analysis C income statement Chapter 15 Q3 What is formal communication different channels of formal communication Q4 What is informal communication Explain its different channels Chapter 14 Q5 What is a servant..
Example of direct labor cost for an airplane manufacturer : The cost of a manufactured product generally consists of which of the following costs?
Write the final weight vector as an equation : What is the final weight vector using the modified perception algorithm - what is the final weight vector and write the final weight vector as an equation
Element in the middle position of the array : 1. Suppose we choose the element in the middle position of the array as pivot. Does this make it unlikely that quicksort will require quadratic time?
Determining the quicksort implementation : a. For the quicksort implementation in this chapter, what is the running time when all keys are equal?
Activities do for their mental-emotional and physical health : Of course we can laugh when our parents and grandparents (or even we) reflect on the “good ol' days” when life was simple and children played in the yard, made fun out of anything they could find, and spent minimal time in front of the “boob tube” an..
Describe the structure of the desert ecosystem : How can these be sustained into the future? How can humans act as good stewards to assist ecosystem recovery? Provide 1 example specific to the ecosystem that you have chosen

Reviews

Write a Review

Other Subject Questions & Answers

  Paint a detailed picture of public health problems

In the field of public health, qualitative data can paint a detailed picture of public health problems, contributing factors, communities, and community needs. Qualitative data may be used to inform researchers about what to measure next, and prov..

  The risk management tools

Discuss the relationship between risk and this type of insurance.

  Race and institutional violence discussion

Violence breeds violence. Repression breeds retaliation and only a cleansing of our whole society can remove this sickness from our souls. For there is another kind of violence slower,but just as deadly, destructive.

  What is one of fundamental teachings in buddhist scripture

In buddhist scripture The Lotus Sutra what is one of the fundamental teachings?

  Explain the decision you require to make that you have been

john wayne once said courage is being scared to death but saddling up anyway. making a decision sometimes truly feels

  Normal distribution and lifetime of bulb

Assume that the lifetime of a bulb is normally distributed, with a mean of 3000 hours and a standard deviation of 200 hours. If the department wants no more than 1% of the bulbs to burn out before they are replaced, after how many hours should all..

  What is a cartel? is cartel good for our economy?

What is a Cartel? Is Cartel good for our economy?

  Promotion of unhealthy food choices

What role does the media play in the promotion of unhealthy food choices? Identify and describe a specific example.

  Creation of database required by the operation of enterprise

This explains that building databases is really an extension of a human activity that has lasted since writing began and it can be applied to the result of any bookkeeping or recording activity that happened long before the arrival of the computer..

  Sex hormones work together during sexual arousal

Describe in a language that a teen would understand, how the brain, neurochemicals, and sex hormones work together during sexual arousal.

  Why is the united states experiencing an infrastructure

why is the united states experiencing an infrastructure crisis?why did romans use elevated aqueducts instead of pipes

  Elements of reasoning that were outlined

Using the 8 elements of reasoning that were outlined in week 2 (Purpose, problem, information, concepts, assumptions, inferences, points of view, implications or consequences) choose a news article and break it down according to those elements.

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