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
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
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
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
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
using System; | |
using System.ComponentModel.DataAnnotations; | |
namespace BlazorWithML.NET.Model | |
{ | |
public class BikeForcastInput | |
{ | |
[Required(ErrorMessage = "Number of years to predict is required.")] | |
[Range(minimum: 1, maximum: 500, ErrorMessage = "Range of values allowed are 1 - 500")] | |
public int numberOfDaysToPredict { 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
@page "/BikeDemandForcast" | |
@using BlazorWithML.NET.Model | |
@using Newtonsoft.Json | |
@inject HttpClient Http | |
@inject NavigationManager NavigationManager | |
<h3>Bike Demand Forcast</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; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace Employee.DataAccess.Model | |
{ | |
public class Employee | |
{ | |
[Key] | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |