Learning without gradient descent encoded by the dynamics of a neurobiological model