added prediction basis which uses neural-network style losses, added wrt to function again more simply(only one variabel or all) - testing needed