Learning When To Use A Decomposition