This is a common (and convenient) perspective, especially among engineers, but doesn't reflect reality particularly well. We know large swathes of a person's personality is directly linked to their genetics.
The article extrapolates this neural network perspective onto other topics like, mental disorders and depression. The solution is made clear then - just learn how to not be mentally ill! Again, convenient. But not really reflective of reality.