Analytical/ML Mixed Approach for Concurrency Regulation in Software Transactional Memory