The following table shows a data set and the number of times each point is misclassified during a run of the perceptron algorithm (with offset θ0). θ and θ0 are initialized to zero.
i | x(i) | y(i) | times misclassified |
1 | [-4, 2] | +1 | 1 |
2 | [-2, 1] | +1 | 0 |
3 | [-1, -1] | -1 | 2 |
4 | [2, 2] | -1 | 1 |
5 | [1, -2] | -1 | 0 |
Write down the state of θ and θ0 after this run has completed (note, the algorithm may not yet have converged). Enter θ as a list [θ1,θ2] and θ0 as a single number;
θ = ?
θ0 = ?
θ=[0,0], θo=0
Here, for y=+1, θx+θo>0 and y=-1,θx+θo<=0
if x has label +1 but got misclasfied, then θ=θ+x
if x has label -1 but got misclassified, then θ=θ-x
Using perceptron algorithm,
θ=[-4,2]-2*[-1,-1]-[2,2] =[-4,2]
θo=1-2*1-1=-2
So,θ=[-4,2] and θo=-2
The following table shows a data set and the number of times each point is misclassified...
The table below shows the relationship between the number of times you get your car washed each month and your total monthly benefit from car washes. Each car wash costs $15. Number of Car Washes Per Month Total Monthly Benefit from Car Washes 0 $0 1 $20 2 $36 3 $48 4 $56 5 $60 How many times a month should you get your car washed? a. 1 b. 2 c. 3 d. 4
Question 4 CLO3 The following Python script implements an algorithm to find and prints the max value in a list of values. MAX 0 def MaxVal (Ist): for i in Ist: if( MAX < i): MAX = i return (MAX) Marks (20,24,26,19,5,31,24,32,32,45 print (MaxVal (Marks) a. Express the number of operations in terms of a function f(n), where n is the input size. (1 Mark) b. What is the total number of operations in the for loop of the algorithm...
Problem 5 - Rare outcomes and data set size Here we will be concerned with a biased coin for which outcome 1 has a very low probability, i.e 0 < θι < 6o << 1. Assume our experiment consists of n independent tosses of this coin. 1. What is the probability po P(n1 0) that the outcome sequence contains no 1's? Write the answer as a function of θ| and n 2. What is the probability pi P(n1-1) that the...
4:12 7 11 Exit Question 10 5 pts The pie chart shows the number of times a group of survey respondents watched the news in the past week. No times 2% 7 or more times 5% 3-4 times 34% 5-6 times 18% 1-2 times 41% If the number of respondents in the study was approximately 44,322, estimate how many stated that they watched the news 5-6 times in the last week. 12,000 respondents 8000 respondents 6000 respondents 0 10,000 respondents
The figure shows the path taken by a drunk skunk over level ground, from initial point i to final point f. The angles are θ1 = 31.0°, θ2 = 52.0°, and θ3 = 77.0°, and the distances are d1 = 5.70 m, d2 = 8.80 m, and d3 = 14.0 m. What are the (a) magnitude and (b) angle of the skunk's displacement from i to f? Give the angle as a positive (counterclockwise) or negative (clockwise) angle of magnitude...
Consider a single-server queueing system with arrival and service details as: Interarrival times: 3, 2, 6, 2, 4, 5 Service times: 2, 5, 5, 8, 4, 5 Prepare a table show below for the given data. Stop simulation when the clock reaches 20. Write a Java program, to implement this single-server queueing system, print out the table shown below: You should create a future event list in your Java code, and print out the contents of FE list in each...
The following table shows a short-run production function for tablets. Use the data to determine where diminishing marginal product begins. Number of workers Total output of tablets 0 0 1 50 2 120 3 180 4 230 5 280 6 325 7 320 8 310 Diminishing marginal product begins when the company hires worker number
Consider the following two threads of a process, to be run concurrently in a shared memory (all variables are shared between the two threads): Assume the following: 1. a single-core system 2. load and store are atomic (i.e. they start and finish without interruption) 3. x is initialized to 0 before either thread starts, and 4. x must be loaded into a register before being incremented (and stored back to memory afterwards). The following questions consider the final value of...
The following table shows estimates of activity times (weeks) for a project: Activity Optimistic Time Most Probable Time Pessimistic Time A 3 4.5 9 B 1.5 2 2.5 C 5 6 7 D 4 4.5 8 E 5 6 7 F 1 2.5 7 G 7 9 11 Suppose that the critical path is A-B-D-F-G. Use Appendix A to answer the questions. Do not round intermediate calculations. Round your answers to three decimal places. What is the probability that the...
The following table shows both current and projected data on the number, in millions, of Facebook users in a certain country. t = years since 2012 F = number of Facebook users (millions) 0 9.2 1 10.5 2 11.3 3 11.7 4 13.1 5 13.2 6 14.3 (a) Plot the data. (b) Find the equation of the regression line. (Round regression line parameters to two decimal places.) F(t) = Add the graph of the regression line to the plot from...