public async Task <ResNet50ModelOutput> EvaluateAsync(ResNet50ModelInput input)
        {
            ResNet50ModelOutput         output  = new ResNet50ModelOutput();
            LearningModelBindingPreview binding = new LearningModelBindingPreview(learningModel);

            binding.Bind("image", input.image);
            binding.Bind("classLabel", output.classLabel);
            binding.Bind("classLabelProbs", output.classLabelProbs);
            LearningModelEvaluationResultPreview evalResult = await learningModel.EvaluateAsync(binding, string.Empty);

            return(output);
        }
        public async Task <IMachineLearningOutput> EvaluateAsync(IMachineLearningInput input)
        {
            var modelInput = input as ResNet50ModelInput;
            ResNet50ModelOutput         output  = new ResNet50ModelOutput();
            LearningModelBindingPreview binding = new LearningModelBindingPreview(LearningModel);

            binding.Bind("image", modelInput.image);
            binding.Bind("classLabel", output.classLabel);
            binding.Bind("classLabelProbs", output.classLabelProbs);
            LearningModelEvaluationResultPreview evalResult = await LearningModel.EvaluateAsync(binding, string.Empty);

            return(output);
        }