Files
gh-jeremylongshore-claude-c…/skills/hyperparameter-tuner/assets/visualization_template.html
2025-11-29 18:51:22 +08:00

113 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hyperparameter Tuning Results</title>
<style>
/* Basic styling for a modern look */
body {
font-family: sans-serif;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
color: #333;
}
.container {
max-width: 960px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #007bff;
}
h2 {
margin-top: 20px;
color: #555;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
font-weight: bold;
}
.best-params {
margin-top: 20px;
padding: 15px;
background-color: #e6f7ff;
border: 1px solid #b3d9ff;
border-radius: 5px;
}
.best-params h3 {
color: #007bff;
margin-bottom: 10px;
}
/* Responsive design */
@media (max-width: 600px) {
body {
padding: 10px;
}
.container {
padding: 10px;
}
table {
font-size: 0.8em;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Hyperparameter Tuning Results</h1>
<div class="best-params">
<h3>Best Hyperparameters</h3>
<p><strong>Metric:</strong> {{best_metric}}</p>
<p><strong>Value:</strong> {{best_metric_value}}</p>
<p><strong>Parameters:</strong> {{best_parameters}}</p>
</div>
<h2>Trial Results</h2>
<table>
<thead>
<tr>
<th>Trial</th>
<th>Parameters</th>
<th>Metric Value</th>
</tr>
</thead>
<tbody>
{{trial_results}}
</tbody>
</table>
<h2>Visualization</h2>
<img src="{{visualization_url}}" alt="Hyperparameter Tuning Visualization">
</div>
</body>
</html>