|
Hi, Here is the graph of my output for HW5-3. I get an error of 0.0313213019648. But the solution check gives me a "Error, at least one of your entries is not correct". Am I right or wrong? Also, I just noticed that I need >60 karma to upload an image. Why??!! |
|
Hi, I finally found the problem. It was the way I was calculating the cost for smoothing(the value that we are trying to minimize). I was dividing the value by the number of data points. I removed that and it worked fine. My thanks to @ftynse, @dojuba and @fortranista for responding Charuvahan |
|
Your graph looks about right to me (though I only plotted my answer with ascii art, and I didn't allow for the fact that my character cells aren't square, so I'm only using my gut to compare them.) For your own information, plot answer1. Try swapping the order of your updates until you converge on the same solution as answer1. |
Can you post your values, not the image that says almost nothing?
Actually, even though I have more karma that needed I can't upload images. So don't worry :)