All those words and you forget to provide people the breadcrumbs to learn more for themselves.
The term of interest is "backpropagation".
The term of interest is "backpropagation".
Wasn’t Prolog invented to formalise these kinds of problems of making the inputs match what the desired output should be.