![]() |
|
#1
|
|||
|
|||
![]()
I am struggling to understand how to calculate
![]() Once the algorithm terminates, I have ![]() ![]() ![]() Case 1. Just use the same cross entropy error calculation but on this new data set. ![]() Case 2. Directly calculate the expected output of our hypothesis function and compare to ![]() ![]() ![]() Ultimately this gives us the probability that our hypothesis aligns with Y: ![]() In the lectures/book, we would multiply these probabilities to get the "likelihood" that the data was generated by this hypothesis. However, it seems that averaging over these should give the expected error in this sample. ![]() It feels as though the first approach is the correct one, but I struggle because the second approach makes intuitive sense since that is how I historically I would have calculated ![]() |
#2
|
||||
|
||||
![]() Quote:
![]() ![]()
__________________
Where everyone thinks alike, no one thinks very much |
#3
|
|||
|
|||
![]()
I suspected as much. I'll try to figure out why my other approach is wrong tomorrow. I think I've burned out on it today and am probably not seeing something obvious. Thanks for your help!
|
#4
|
|||
|
|||
![]()
I am also a little unsure about exactly how this equation works:
![]() Obviously the more negative ![]() |
#5
|
||||
|
||||
![]() Quote:
![]() ![]() ![]()
__________________
Where everyone thinks alike, no one thinks very much |
#6
|
|||
|
|||
![]() Quote:
|
#7
|
|||
|
|||
![]()
Thank you for explaining that normalization is not required. Your explanation now makes a bit more sense why I see the weights continue to increase in value the more iterations that I run.
|
#8
|
|||
|
|||
![]()
One very minor point which may help error prone folks such as myself:
In Linear methods we always have a d+1 dimensional weight vector by adding an extra pseudo-coordinate of 1 for each training and test point. I completely overlooked this and was struggling with the error never getting as small as the expected answer. Spent a long time rechecking code etc. As soon as I fixed this, things fell into place. Likely I will never forget this :-) |
![]() |
Thread Tools | |
Display Modes | |
|
|