Consider running perceptron algorithm

Assignment Help Basic Computer Science
Reference no: EM133049103

1. Consider running the Perceptron algorithm on a training set S arranged in a certain order. Now suppose we run it with the same initial weights and on the same training set but in a different order, S 0 . Does Perceptron make the same number of mistakes? Does it end up with the same final weights? If so, prove it. If not, give a counterexample, i.e. an S and S 0 where order matters.

2. We have mainly focused on squared loss, but there are other interesting losses in machine learning. Consider the following loss function which we denote by φ(z) = max(0, -z). Let S be a training set (x 1 , y1 ), . . . ,(x m, ym) where each x i ∈ R n and y i ∈ {-1, 1}. Consider running stochastic gradient descent (SGD) to find a weight vector w that minimizes 1 m Pm i=1 φ(y i · w T x i ). Explain the explicit relationship between this algorithm and the Perceptron algorithm. Recall that for SGD, the update rule when the i th example is picked at random is wnew = wold - η∇φ y iw T x i .

3. Here we will give an illustrative example of a weak learner for a simple concept class. Let the domain be the real line, R, and let C refer to the concept class of "3-piece classifiers", which are functions of the following form: for θ1 < θ2 and b ∈ {-1, 1}, hθ1,θ2,b(x) is b if x ∈ [θ1, θ2] and -b otherwise. In other words, they take a certain Boolean value inside a certain interval and the opposite value everywhere else. For example, h10,20,1(x) would be +1 on [10, 20], and -1 everywhere else. Let H refer to the simpler class of "decision stumps", i.e. functions hθ,b such that h(x) is b for all x ≤ θ and -b otherwise.

(a) Show formally that for any distribution on R (assume finite support, for simplicity; i.e., assume the distribution is bounded within [-B, B] for some large B) and any unknown labeling function c ∈ C that is a 3-piece classifier, there exists a decision stump h ∈ H that has error at most 1/3, i.e. P[h(x) 6= c(x)] ≤ 1/3. (b) Describe a simple, efficient procedure for finding a decision stump that minimizes error with respect to a finite training set of size m. Such a procedure is called an empirical risk minimizer (ERM).

(c) Give a short intuitive explanation for why we should expect that we can easily pick m sufficiently large that the training error is a good approximation of the true error, i.e. why we can ensure generalization. (Your answer should relate to what we have gained in going from requiring a learner for C to requiring a learner for H.) This lets us conclude that we can weakly learn C using H.

 

Reference no: EM133049103

Questions Cloud

Marketing adds utility to products : a) What does it mean when we say marketing adds utility to products?
Record the replenishment of the petty cash fund on August : Question - A petty cash fund was originally established with a check for $100. Record the replenishment of the petty cash fund on August
Addressing the issue of political instability : Evaluate Facebook's effectiveness in addressing the issue of political instability.
Discuss homesense stores atmospherics : Discuss homesense's stores atmospherics captures the consumers mood and maintains the stores image.
Consider running perceptron algorithm : Consider running the Perceptron algorithm on a training set S arranged in a certain order.
What are the key financial statements : What are the key financial statements and explain the purpose of each of them?
Create a powerpoint to address the scenario : For this assignment the student will create a PowerPoint to address the following scenario.
Determine the the exchange rate : If wheat costs $12 per bushel in the United States and 8 pounds per bushel in Great Britain, then in the presence of purchasing-power parity the exchange rate
Explain medical necessity : Address the following points: Explain how to prevent coding errors. What should you do if you catch or see a coding error?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Safaris come in a wide range of versions

People often travel to Africa to go on safaris. Safaris come in a wide range of versions. Some are very rough and basic

  Research interests in area of information technology

What are your research interests in the area of information technology? How did you become interested in this area of research?

  Experiences catastrophic failure

If a company has 10000 computers, each with a MTTF of 35 days,and it experiences catastrophic failure only if 1/3 of the computers fail,what is the MTTF for the system? If costs an extra $1000, per computer, to double the MTTF, would this be a goo..

  Names and numbers of london-based suppliers

Give the relational algebra expression for the following English queries. 1. Get the supplier# who supply all the blue parts

  Write a simple c program with the following functions

Write a simple C program with the following functions. The functions should use the values entered by the user: Subtraction(int a, int b)

  Declare an integer constant for the size of the array

When the user runs this block of code, the values in the array will be displayed, along with a sum value, the lowest value, and the number of occurrences of the lowest value.

  Hierarchical clustering technique

How do you compare it with a hierarchical clustering technique.

  Role of insurance in healthcare delivery and productivity

Discuss the role of insurance in healthcare delivery and productivity

  Emergency operation plan and crisis management plan

Discuss in detail, the activities involved in Emergency Operation Plan and Crisis Management Plan.

  Determining the encoding mechanisms

List all of the IrDA (infrared) encoding mechanisms, and if possible please specify what they do.

  Describe the organization environment

Describe the organization's environment, and evaluate its preparedness for virtualization.

  Learning objectives and outcomes

The focus of this discussion is the Bill of Rights. When you have explored the concepts related to the Bill of Rights

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