Still stuck on crafting a suitable training algorithm :(