private void btnStart_Click(object sender, EventArgs e)
        {
            var responce = Task.Run(() => _predictionModel.MakePrediction(new PredictionDTO()
            {
                UserId      = _loggedUser.Id,
                PredictDate = dtpPredictDay.Value.Day
            })).Result;

            lblIncometot.Text = "Rs. " + string.Format("{0:#.00}", (responce.PredictIncome > 0 ? responce.PredictIncome : 0));
            lblExptot.Text    = "Rs. " + string.Format("{0:#.00}", (responce.PredictExpence > 0 ? responce.PredictExpence : 0));

            panel1.Visible = true;
        }
Exemplo n.º 2
0
 public double MakePredition(double sensorAction)
 {
     predictionModel.UpdateModel();
     predictionModel.DebugModel();
     return(predictionModel.MakePrediction(sensorAction));
 }