Implementation of dynamic soft label stacking algorithm