Back to Postgresml

model_training <%= model.algorithm %> <% if deployed { %> star <% } else { %> cancel <% } %>

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

2.10.01.2 KB
Original Source

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

model_training<%= model.algorithm %> <% if deployed { %> star <% } else { %> cancel <% } %>

Project<%= project.name %> <% if let Some(snapshot) = snapshot { %> Snapshot<%= snapshot.relation_name %> <% } %> Created<% model.created_at; %>

Metrics

<% if !model.metrics().is_empty() { %> <% for (key, value) in model.metrics().iter() { %> <% if key == "search_results" {} else { %> <%= key %><%= format!("{:.4}", value.as_f64().unwrap_or(0.)) %> <% } %> <% } %> <% } else { %> no metrics <% } %>

Hyperparams

<% if !model.hyperparams().is_empty() { %> <% for (key, value) in model.hyperparams().iter() { %> <%= key %><%= value.to_string().replace(""", "") %> <% } %> <% } else { %> no hyperparams <% } %> <% if model.search.is_some() && model.search_results().is_some() { %>

Hyperparam Search - <%= model.search.as_ref().unwrap() %>

<% for (param, values) in model.search_params().iter() { %>

<%= param %>

<%= values.to_string() %>

<% } %> <% } %>