There is a misunderstanding of the two concepts Deep Learning is a sub-field of the large Machine learning concept (See attached photo). Another question what do you want to optimize?
you can use two different AIs algorithms one to optimize the other see my paper:
Article Multicomponent Image Segmentation Using a Genetic Algorithm ...
I suggest you follow the attached books and https://www.analyticsvidhya.com/blog/2020/01/fundamentals-deep-learning-activation-functions-when-to-use-them/
Actually the concepts of Deep Learning and Machine learning are very clear in my mind. Maybe my question is not very well formulated but I want to use two or more different algorithms to optimize accuracy as output.