Back to Postgresml

storage<%= snapshot.relation_name %> <% if &snapshot.status == "created" { %> done <% } else { %> sync <% } %>

pgml-dashboard/templates/content/dashboard/panels/snapshot.html

2.10.01.8 KB
Original Source

% use crate::utils::urls; %>

storage<%= snapshot.relation_name %> <% if &snapshot.status == "created" { %> done <% } else { %> sync <% } %>

Snapshot ID<%= snapshot.id %>Table Size<%= snapshot.table_size %>Rows<%= snapshot.rows().unwrap() %>Features<%= snapshot.feature_size().unwrap() %>Created<% snapshot.created_at; %> <% if !models.is_empty() { %>

model_trainingModels

<% let project = &projects[&models.iter().next().unwrap().project_id]; %>

  1. [

<%= project.name %>

<%- project.key_metric_display_name().unwrap() %>

](<%-%20urls::deployment_project_by_id(project.id)%20%>) <% for model in models.iter() { %> 2. [ <% if model.search.is_some() { %> <% if model.search.as_ref().unwrap().as_str() == "grid" { %> grid_on <% } %> <% if model.search.as_ref().unwrap() == "random" { %> shuffle <% } %> <% } else { %> check_circle <% } %> <%= model.algorithm %> <%= format!("{:.4}", model.key_metric(&project).unwrap_or(0.)) %>

](<%-%20urls::deployment_model_by_id(model.id)%20%>) <% } %> <% } %> <% if snapshot.exists { %>

label_importantLabels

<% for label in snapshot.labels().unwrap().iter() { let name = label["name"].as_str().unwrap(); let name_machine = name.replace(" ", "_"); %>

<%= name %> <%= label["pg_type"].as_str().unwrap() | upper %>

<% } %>

bubble_chartFeatures

<% for feature in snapshot.features().unwrap().iter() { let name = feature["name"].as_str().unwrap(); let name_machine = name.replace(" ", "_"); %>

<%= name %> <%= feature["pg_type"].as_str().unwrap() | upper %>

<% if snapshot.y_column_name.as_ref().is_some() { %> <% for y_column_name in snapshot.y_column_name.as_ref().unwrap().iter() { %>

<% } %> <% } %> <% } %> <%} else { %>

Data no longer exists to plot statistics

<% }%>