Instead of using tree leaves, develop a more generic synthesizer that would quantize a target continuous variable into a few classes, then train an arbitrary classifier to predict them and decategorize the result the same way the IPF synthesizer does.