Virtual Metering and Allocation using Machine Learning Algorithms