Taking the human out of decomposition-based optimization via artificial intelligence: Part I. Learning when to decompose