1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ostrovityanka [42]
3 years ago
14

For any two documents x and z, define k(x; z) to equal the number of unique words that occur in both x and z (i.e., the size of

the intersection of the sets of words in the two documents). Is this function a kernel? Justify your answer. Remember k(x; z) is a kernel if there exists (x) such that k(x; z) = (x)T (z)
Mathematics
1 answer:
liq [111]3 years ago
7 0

Answer:

Yes, the function is a kernel

Step-by-step explanation:

Given

Document x an z

Function definition! k(x:z)

We want to show that the above is a kernel.

To do this, we'll explicitly construct feature vectors φ(x) and φ(z)

This gives;

K(x,z) =φ(x)·φ(z).

Given than any document; say x and z

A vocabulary V can be constructed.

Vocabulary V must have a finite size of words in the document set..

The feature mapping is constructed as φ(x) for x by the following:

For the kth word wk in V, if wk appears in document x, assign φ(x) k(the kth element ofφ(x)) to be 1; else φ(x)k to 0.

Then the number of unique words common in x and z is φ(x)·φ(z), giving us the kernel

.

You might be interested in
Jasmine is designing boxes she will use to ship her jewelry. She wants to shape the box like a regular polygon. In order for the
Naddik [55]

Answer:

The regular polygon that she should use is an equilateral  triangle

Step-by-step explanation:

The parameters given are;

Interior angles = 0.5 × Exterior angles

Exterior angles of a regular polygon = 360/n

Sum of interior angles of a regular polygon = (n - 2) × 180

Where n = the number of sides

Therefore, the sum of exterior angles of a regular polygon = 360°

Hence we have;

(n - 2) × 180 = 360/2 = 180

n - 2 = 180/180 = 1

n = 1 + 2 = 3 which is a three sided regular polygon or an equilateral triangle

Therefore, the regular polygon that she should use is an equilateral  triangle

3 0
4 years ago
Give a counterexample for the statement: 'All square roots are irrational numbers'. Explain your reasoning.
galben [10]
A counterexample for the statement 'All square roots are irrational numbers.' is the square root of 9.  This is because when simplified, the answer is 3.  

For a number to be irrational, it can't be expressed in fractional form.  However, 3 can be expressed in fractional form as 3/1.
5 0
3 years ago
nicole and adam are each saving money for a car. the total amount of money nicole will save is represented by the function f(x)=
Natalija [7]
They will have the same amount of money after 7 weeks.

We first set these equal to each other:
36+4x=x²+15

We want to gather all of the variables on one side.  Subtract 4x from both sides:
36+4x-4x=x²+15-4x
36=x²-4x+15

We want the equation to be equal to 0 to solve it, so subtract 36 from both sides:
36-36=x²-4x+15-36
0=x²-4x-21

We can factor this expression.  We want factors of -21 that sum to -4; -7(3)=-21 and -7+3=-4:
0=(x-7)(x+3)

Using the zero product property, we know that x-7=0 or x+3=0; this means x=7 or x=-3.  Since a negative number of weeks makes no sense, the answer is 7 weeks.
6 0
3 years ago
Y= -3/2x-2 graph graph
evablogger [386]

Answer:

To graph (like the provided picture) you must understand y=mx+b. Your m would stand for your slope which you need to determine with rise over run. Rise over run can be done by finding a place where both the x and y values are lined up. (0,-2) can be used as an example from the picture. You then want to find the next point where the x and y values line up which (-2,1) can be used. Go up 3 units and go to the LEFT 2 times which makes this a negative run. The slope would then be represented as -3/2.

Your x value stands for your x-value moving up or down while you b value stands for your y-intercept which point (0,-2) is represented as. Y represents the y value after the equation is plugged in with x and solved.

8 0
4 years ago
There are 180 politicians at a meeting. They each shake each others hands with everyone else. How many handshakes were there.
arlik [135]
So if 1 person shakes the other 179 people in the meeting then you would multiply 180 times 179 which would equal 32,220 handshakes
8 0
3 years ago
Other questions:
  • Find the solution to the differential equation dydx+y4=0, subject to the initial conditions y(0)=12.
    11·1 answer
  • The sears tower in chicago is 1450 feet high. A model of the tower is 24 inches tall. What is the ratio of the height of the mod
    14·2 answers
  • Which expression results in a product that is rational?
    5·1 answer
  • The definition of a circle uses the undefined term? ..
    11·1 answer
  • Simplify.<br><br> 52+20<br><br><br><br><br> 5<br><br> 30<br><br> 45<br><br> 72
    8·2 answers
  • 1. Which quadrilaterals always have opposite
    5·2 answers
  • 3(6d-24)=6(12+3d)<br> i need help
    12·1 answer
  • Solve the system of equations 4x + 8y = 4 and —2x – 7y = -11 by combining<br> the equations.
    6·1 answer
  • Slope is 2 and (3,4) is on the line. solve
    8·1 answer
  • How many edges does the<br> prism have?<br> Pls full explanation ty
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!