machine learning token allocation