@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