« first day (4142 days earlier)      last day (885 days later) » 

6:03 PM
Couldnt find a AI live chat, this is kinda out of topic but does anyone of you know how logistic regression works ?
 
6:18 PM
I mean, I know how it works to the level I can glean from typing "logistic regression tutorial" into a search engine, but I assume you've already done that. Is there a specific snag you've hit that we can help you with?
 
6:55 PM
@DMGregory Yes ^^ Well we also had a lecture, but my prof somehow does not reply to emails since days :D Our task was to implement it from scratch, mostly by using matrixes. The formula for optimizing the weights is looking like this in our lecture : prnt.sc/226zp12
I actually implemented this 1:1 using c++ and eigen. The problem however is that there seems to be an error in either my code or the formula itself. I also couldnt find any similar formula online
( w = weight , alpha = learn-rate ) forgot to mention this
 
7:07 PM
pastebin.com/QVt3aBX1 The code... basically the formula shown above. However this produces an weird output, the gradient doesnt really change at all and the weights grow and grow and grow. The costs however increase which doesnt make sense either.
The prediction implementation however looks correct. And the way i implemented the weight optimization formula looks also correct... any idea how i may figure out where the mistake is ?
 
user92578
Not sure if you've already found this but the math here looks quite similar? web.stanford.edu/class/archive/cs/cs109/cs109.1178/…
 
user92578
I can't really follow just from those three lines of equations in the screenshot
 
@Tyyppi_77 Thanks im gonna look at that ^^ I think those few lines above are actually the formula for the gradient descend, which is used to update the weights. But i assume there multiple ways
 
user92578
7:30 PM
I can't really spot anything wrong with your code though
 

« first day (4142 days earlier)      last day (885 days later) »