public async Task <ActionResult> PredictSaving(string Day1, float Distance, int Hour, string VehicleType)
        {
            var hasil = new OutputData()
            {
                IsSucceed = true
            };

            var modelInput = new ModelInput2()
            {
                Day = Day1, Vehicle_Type = VehicleType, Hour = Hour, Ride_Distance__km_ = Distance
            };

            try
            {
                var datas = PredictSaving(modelInput);
                hasil.Data = datas;
            }
            catch (Exception ex)
            {
                hasil.IsSucceed    = false;
                hasil.ErrorMessage = ex.Message;
            }

            return(Ok(hasil));
        }
        static ModelOutput2 PredictSaving(ModelInput2 input)
        {
            // Create new MLContext
            MLContext mlContext = new MLContext();

            // Load model & create prediction engine
            string       modelPath  = MODEL2_FILEPATH;
            ITransformer mlModel    = mlContext.Model.Load(modelPath, out var modelInputSchema);
            var          predEngine = mlContext.Model.CreatePredictionEngine <ModelInput2, ModelOutput2>(mlModel);

            // Use model to make prediction on input data
            ModelOutput2 result = predEngine.Predict(input);

            return(result);
        }