I am in the exact same situation - I am trying to get into machine learning from being a web developer so I am learning a lot of new things too.
After months of not finding time to do courses online, I've been studying between 5-7am for the last couple of weeks.
Previously I would wake up, go straight to work, come back home tired and waste time on Netflix before going to bed.
Now I spend less time for entertainment after work and sleep sooner because I have to wake up early.
This may not help you but thought I would share my experience.
Edit: Reading your question again and looking at the other comment, looks like your question may not be about time management so this may be irrelevant.
After months of not finding time to do courses online, I've been studying between 5-7am for the last couple of weeks. Previously I would wake up, go straight to work, come back home tired and waste time on Netflix before going to bed. Now I spend less time for entertainment after work and sleep sooner because I have to wake up early.
This may not help you but thought I would share my experience.
Edit: Reading your question again and looking at the other comment, looks like your question may not be about time management so this may be irrelevant.