Neural network supervised and reinforcement learning for neurological, diagnostic, and modeling problems