There have been a few makeshift AI map "generators" already
Most notably this one:
https://github.com/mappingtools/MapperatorBasically, you gather all the maps you want it to learn from in a collection, which you extract as the model. Then the program will use the model to rearrange the objects in a map. That means you need to at least have the rhythm already placed down.
I've tried using this program on a model with 100+ maps from the same mapper, and it doesn't work very well. Also it was last updated almost a year ago, so.