It sounds like Design Automation to me, what you want to do.
Autodesk is developing Dynamo for this. I assume it will come in vanilla AutoCAD as well someday. It is a great start to use for design Automation. Also, Autodesk is working on a generative design software (Project Refinery).
Machine Learning is a bridge too far for Autodesk, so I wonder if you will succeed 
look nice, but sadly works just for Revit, I will choice AutoCAD over REVIT for AI or Machine Learning because of the AutoLISP. you just need to open a .txt for start. but for Revit, you need .NET (VisualBasic C+ C#, etc) and .Net IMO is very hard to work and 3D is painful. so that is a great point for AUTOCAD over REVIT, especially If you need a lot of them for AI or machine learning.
Not sure if this is covered yet, but take a look at BricsCad. They are getting into this AI now.
I found this in Bricscad's shared link "A big problem in CAD is the increase in complexity. Machine learning is a possible solution", BricsCAD understands the point with Machine Learning.
I want to use, for example, AUTOCAD or BRICSCAD with the 1000 lisp that I already have or I will create, I do not want to pay others $10000 for a month for doing my work.
99% of my works are repeated the same lisp but in a different order, something like DYNAMIC MACRO is what I need.
IMO BricsCAD is making the winning play. but AUTODESK just wants to try to kill AutoCAD.
A book about machine learning (A Guide for Making Black Box Models Explainable):
https://christophm.github.io/interpretable-ml-book/
a lot of thanks, I will check it.