cdbm's mean-field training