Keep in mind that the dataset generated during optimization and the one you would prefer to train a model are quite different.
Also, in practice optimizing a lead compound is about more than just potency. You are also worried about things like toxicity, bioavailability, off target effects (selectivity), synthesis routes / yields (manufacturability), etc. And functional readouts (the assays you run) are not consistent across diseases / indications / targets / compounds.
That being said I am almost certain someone has used Bayesian optimization for an assist.