CS4378V_CS5369L: Homework #2 CS4378V_CS5369L: Homework #2 Assigned: Tuesday, October 9, 2012 Due: Tuesday, October 23, 2012 (100 points)CS4378V_CS5369L: Homework #2 1. (40 pts) Implement...
kumranCS4378V_CS5369L: Homework #2
CS4378V_CS5369L: Homework #2
Assigned: Tuesday, October 9, 2012
Due: Tuesday, October 23, 2012
(100 points)CS4378V_CS5369L: Homework #2
1. (40 pts) Implement the linear regression algorithm (gradient descent) and run the linear
regression algorithm on the training samples (linear_regression_data.txt). You can find
the dataset on Tracs under “Resources: Data”. Get the learned linear function and the
predicted results of the testing samples (linear_regression_data.txt).
2. (40 pts.) Learn the probabilities for Naive Bayes for the following training examples. Use
Laplace’s smoothing to estimate conditional probabilities.
How well does your Naive Bayes hypothesis perform on the following test examples?
Show your work.
Attributes Class
x1 x2 x3 x4 y
0 0 1 0 1
0 1 0 1 1
1 0 0 0 -1
1 0 1 1 -1
3. (20 pts) Design an n-input perceptron that implements the function: if k or more of the
inputs are true, the output is true. (Suppose the input value can only be “1” (true) or “0”
(false))
- 12 years ago
- 5
Answer(0)
Bids(0)
other Questions(10)
- summarize the hierarchy of organization found in complex multicellular organisms
- Write an essay about the Holacaust
- -3^2/-4(-3)+(-12)
- Homework on D2L SJSU
- |x+6|-18=2x
- who was the first person to put a steam engine on a boat?
- A typical prokaryotic cell has about 3,000 genes in its DNA, while a human cell has about 20,500 genes. ...
- Explore how the pointlessness of war is presented in Black Adder: Goes Forth.
- punctuation help
- The Wall Street Journal published an article in 2010 talking about school districts that will choose to take advantage of...