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; }
public double MakePredition(double sensorAction) { predictionModel.UpdateModel(); predictionModel.DebugModel(); return(predictionModel.MakePrediction(sensorAction)); }