Conversely I don’t think this applies as much to sciences. After I pivoted away from music to become a software engineer, I discovered a world that never ceases to captivate me and elicit curiosity no matter how much I grow. In fact the more expertise I’ve developed, the more intense my interest becomes.
The angrier I am while troubleshooting, the funnier that reveal is for everyone.
Also in school we had to do some big projects like make a virtual machine from scratch and implement things likes call stacks, threading and memory management with our machine op codes. Doing a big long project that really pushes you out of your comfort zone is a BIG help and also can be an opportunity to do something really fun.
Edit: I left out the important role of asking questions, talking with others and even taking the time to compose a forum post or issue on github when it seems that I’ve truly exhausted all my options. Bottom line is, when I took my time and really tried my best to learn something new/difficult there was always an eventual breakthrough and consequential boost in confidence
For now, ML research and development is too complicated and frustrating for me to dedicate the time and energy to become skilled in it.