mirror of
https://github.com/NecroticBamboo/DeepTrace.git
synced 2025-12-21 11:21:51 +00:00
DEEP-16 Dummy pages for About and Training created, minor UI changes
This commit is contained in:
parent
6d7f17a34d
commit
66113a7cb1
6
DeepTrace/Pages/About.razor
Normal file
6
DeepTrace/Pages/About.razor
Normal file
@ -0,0 +1,6 @@
|
||||
@page "/about"
|
||||
<h3>About</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
@page "/fetchdata"
|
||||
@page "/datasources"
|
||||
@using DeepTrace.Controls
|
||||
@using DeepTrace.Data;
|
||||
@using Microsoft.ML;
|
||||
@ -86,6 +86,7 @@
|
||||
<MudTextField Label="Description" @bind-Value="_queryForm.Source.Description" Variant="Variant.Text" InputType="InputType.Search" Lines="3" />
|
||||
</MudCardContent>
|
||||
<MudCardActions>
|
||||
<MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="MudBlazor.Color.Primary" Class="ml-auto" OnClick="@HandleTrain">Train</MudButton>
|
||||
<MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="MudBlazor.Color.Primary" Class="ml-auto">Submit</MudButton>
|
||||
</MudCardActions>
|
||||
</EditForm>
|
||||
@ -331,6 +332,18 @@
|
||||
|
||||
// --------------------- playground -----------------------------
|
||||
|
||||
// var mlContext = new MLContext();
|
||||
//
|
||||
// var dataView = mlContext.Data.LoadFromEnumerable<MyTimeSeries>(DisplayData.Series[0].Data.Select(x => new MyTimeSeries(Time: x.TimeStamp, Value: x.Value)));
|
||||
//
|
||||
// //DetectSpike(mlContext, dataView, data);
|
||||
// int period = DetectPeriod(mlContext, dataView);
|
||||
// DetectAnomaly(mlContext, dataView, period);
|
||||
|
||||
}
|
||||
|
||||
private void HandleTrain()
|
||||
{
|
||||
var mlContext = new MLContext();
|
||||
|
||||
var dataView = mlContext.Data.LoadFromEnumerable<MyTimeSeries>(DisplayData.Series[0].Data.Select(x => new MyTimeSeries(Time: x.TimeStamp, Value: x.Value)));
|
||||
@ -338,7 +351,6 @@
|
||||
//DetectSpike(mlContext, dataView, data);
|
||||
int period = DetectPeriod(mlContext, dataView);
|
||||
DetectAnomaly(mlContext, dataView, period);
|
||||
|
||||
}
|
||||
|
||||
private async Task<bool> FormatQueries()
|
||||
|
||||
6
DeepTrace/Pages/Training.razor
Normal file
6
DeepTrace/Pages/Training.razor
Normal file
@ -0,0 +1,6 @@
|
||||
@page "/training"
|
||||
<h3>Training</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
@ -9,7 +9,7 @@
|
||||
<MudAppBar Elevation="1">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="MudBlazor.Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
|
||||
<MudText Typo="Typo.h5" Class="ml-3">
|
||||
ML Test UI
|
||||
DeepTrace
|
||||
</MudText>
|
||||
<MudSpacer />
|
||||
@*<MudIconButton Icon="@Icons.Material.Filled.MoreVert" Color="MudBlazor.Color.Inherit" Edge="Edge.End" />*@
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
<MudNavMenu>
|
||||
<MudNavLink Href="/" Match="NavLinkMatch.All">Dashboard</MudNavLink>
|
||||
<MudNavLink Href="/fetchdata" Match="NavLinkMatch.Prefix">Prometheus</MudNavLink>
|
||||
<MudNavLink Href="/datasources" Match="NavLinkMatch.Prefix">Data sources</MudNavLink>
|
||||
<MudNavLink Href="/training" Match="NavLinkMatch.Prefix">Training</MudNavLink>
|
||||
|
||||
<MudSpacer/>
|
||||
<MudNavLink Href="/about" Match="NavLinkMatch.Prefix">About</MudNavLink>
|
||||
</MudNavMenu>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user