This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EvaluateOutput | |
{ | |
public float MeanAbsoluteError { get; set; } | |
public double RootMeanSquaredError { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ForecastOutput | |
{ | |
public string Date { get; set; } | |
public float ActualRentals { get; set; } | |
public float LowerEstimate { get; set; } | |
public float Forecast { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Forecasting_BikeSharingDemandLib; | |
using Microsoft.AspNetCore.Mvc; | |
namespace BlazorWithML.NET.Api.Controllers | |
{ | |
[Route("api/[controller]")] | |
[ApiController] | |
public class BikeDemandForcastController : ControllerBase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Forecasting_BikeSharingDemandLib.Model; | |
using Microsoft.ML; | |
using Microsoft.ML.Data; | |
using Microsoft.ML.Transforms.TimeSeries; | |
using System; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.Linq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/Account/{Id:int}" | |
@using BlazorAppWithCockroachDB.Model; | |
@using Newtonsoft.Json | |
@inject NavigationManager NavigationManager | |
@inject HttpClient Http | |
<h3>@Account.name Account Details</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/EditAccount/{Id:int}" | |
@using BlazorAppWithCockroachDB.Model; | |
@using Newtonsoft.Json | |
@inject NavigationManager NavigationManager | |
@inject HttpClient Http | |
<h3>Edit Account</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/CreateAccount" | |
@using BlazorAppWithCockroachDB.Model; | |
@using Newtonsoft.Json | |
@inject NavigationManager NavigationManager | |
@inject HttpClient Http | |
<h3>Create an Account</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/Accounts" | |
@using BlazorAppWithCockroachDB.Model; | |
@inject HttpClient Http | |
@inject NavigationManager NavigationManager | |
@inject IJSRuntime js | |
<h3>All Accounts</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel.DataAnnotations; | |
namespace BlazorAppWithCockroachDB.Model | |
{ | |
public class AccountModel | |
{ | |
[Required(ErrorMessage = "Balance is required")] | |
[Range(minimum: 1, 99999999, ErrorMessage = "Minimum allowed balance is $1")] | |
public int balance { get; set; } |