Please don’t overestimate the scope of enhance. It is on the same level of abstraction as import. It is just a primitive. You can build sophisticated systems on top of it, but it itself is not such a sophisticated system :)
So, I’d say it is not similar to your machine learning model. The 2 are completely orthogonal.