Artificial intelligence learns to predict solar flux