File size: 11,612 Bytes
b845998 40c29ba b845998 1047c44 b845998 1047c44 b845998 ca60da9 b19d196 ca60da9 b19d196 ca60da9 b845998 b42419d b845998 40c29ba b845998 ca60da9 b845998 b42419d ca60da9 b42419d 1047c44 b845998 1047c44 ca60da9 cac30b9 ca60da9 cac30b9 ca60da9 b845998 215d189 b845998 1047c44 b845998 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stick To Your Role!: {{ model_name }}</title>
<!-- Include Bootstrap CSS for styling -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/css/bootstrap.min.css">
<!-- Include DataTables CSS -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap5.min.css">
<!-- Custom CSS for additional styling -->
<style>
body {
background-color: #f8f9fa;
font-family: 'Arial', sans-serif;
}
.container {
max-width: 1200px; /* Limit the width of the container */
margin: auto; /* Center the container */
padding: 20px; /* Add some padding */
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h1 {
color: #333;
text-align: center;
}
.model-name {
font-size: 24px;
font-weight: bold;
text-align: center;
margin-top: 40px;
margin-bottom: 40px;
padding: 20px; /* Add padding for more margin around text */
background-color: #610b5d;
color: #fff; /* Ensure text is readable on dark background */
border-radius: 15px; /* Rounded edges */
}
.table-responsive {
margin-top: 20px;
max-width: 800px; /* Adjust the width as needed */
margin: auto; /* Center the table */
font-size: 15px
}
table {
border-collapse: separate;
border-spacing: 0;
width: 800px;
margin: auto;
border: none; /* Remove any default border */
}
table thead th {
background-color: #610b5d;
color: white;
border: 1px solid #dee2e6;
text-align: left;
}
table tbody tr {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
table tbody tr:hover {
background-color: #f1f1f1;
}
table td, table th {
padding: 5px; /* Reduce padding */
border: 1px solid #dee2e6;
}
table th:first-child {
border-top-left-radius: 10px;
}
table th:last-child {
border-top-right-radius: 10px;
}
/* Hide default sorting arrows */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
display: none;
}
table.dataTable thead .sorting_asc {
background-image: url("{{ url_for('static', filename='icons/sort_asc_gray.png') }}");
background-repeat: no-repeat;
background-position: center right;
}
table.dataTable thead .sorting_desc {
background-image: url("{{ url_for('static', filename='icons/sort_desc_gray.png') }}");
background-repeat: no-repeat;
background-position: center right;
}
/* Override DataTables padding for sorting icons */
table.dataTable > thead > tr > th:not(.sorting_disabled),
table.dataTable > thead > tr > td:not(.sorting_disabled) {
padding-right: 5px; /* Adjust as needed to center the text */
}
/* Align first two columns to the left */
table.dataTable tbody td:first-child,
table.dataTable tbody td:nth-child(2),
table.dataTable thead th:first-child,
table.dataTable thead th:nth-child(2) {
text-align: left;
}
/* Align all other columns to the center */
table.dataTable tbody td:not(:first-child):not(:nth-child(2)),
table.dataTable thead th:not(:first-child):not(:nth-child(2)) {
text-align: center;
}
/* Tooltip styling */
.tooltip-inner {
max-width: none;
}
th[title] {
position: relative;
cursor: help;
}
th[title]:hover::after {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: white;
padding: 5px 10px;
border-radius: 4px;
white-space: nowrap;
z-index: 1;
font-weight: normal;
font-size: 14px;
}
.image-section {
text-align: center;
margin-top: 40px;
}
.image-section h2 {
font-size: 30px;
margin-bottom: 20px;
}
.image-section p {
margin: auto;
padding-left: 150px;
padding-right: 150px;
margin-bottom: 20px;
text-align: left;
text-indent: 2em;
}
.image-container {
width: 100%;
margin-bottom: 40px;
}
.image-container img {
max-width: 100%;
height: auto;
display: block;
margin: auto;
border: 1px solid #dee2e6;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.matrix-image-container img {
max-width: 50%;
height: auto;
display: block;
margin: auto;
border: 1px solid #dee2e6;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.back-button {
text-align: center;
margin-top: 20px;
}
.custom-button {
background-color: #610b5d;
color: #fff; /* Set white text color */
border-radius: 15px; /* Rounded edges */
padding: 10px 20px; /* Padding for the button */
font-size: 18px; /* Increase font size */
text-decoration: none; /* Remove underline */
}
.custom-button:hover {
background-color: #812b7d;
color: #fff;
}
</style>
</head>
<body>
<div class="container">
<h1 class="mt-5">Stick To Your Role! Leaderboard</h1>
<div class="model-name">Model: {{ model_name }}</div>
<div class="image-section">
<h2>Structure</h2>
<p>
This image shows the circular value structure projected on a 2D plane.
This was done by computing the intercorrelations between different values this space was then reduces with a SVD based approach and varimax rotation (`FactorAnalysis` object from `scikit-learn`).
The theoretical order is shown in the top left figure.
The distance is computed as the average distance of each value to it's rank in the theoretical order.
The minimal distance with the theoretical order in the clockwise and counter-clockwise direction was taken as the final distance.
</p>
<div class="image-container">
<a href="{{ url_for('static', filename='figures/' + model_name + '/structure.svg') }}" target="_blank">
<img src="{{ url_for('static', filename='figures/' + model_name + '/structure.svg') }}" alt="Structure">
</a>
</div>
</div>
<div class="image-section">
<h2>Pairwise Rank-Order stability</h2>
<p>
This image shows the Rank-Order stability between each pair of context chunks.
Rank-Order stability is computed by ordering the personas based on their expression of some value,
and then computing the correlation between their orders in two different context chunks.
The stability estimates for the ten values are then averaged to get the final Rank-Order stability measure.
Refer to our <a href="https://arxiv.org/abs/2402.14846">paper</a> for details.
</p>
<div class="matrix-image-container">
<a href="{{ url_for('static', filename='figures/' + model_name + '/matrix.svg') }}" target="_blank">
<img src="{{ url_for('static', filename='figures/' + model_name + '/matrix.svg') }}" alt="Matrix" >
</a>
</div>
</div>
<dic class="image-section">
<h2>Confirmatory Factor Analysis metrics</h2>
<p>
This tables show the metrics resulting from the Magnifying class CFA procedure:
for each context chunk four CFA models are fit (one for each high level value).
The average of the metrics for those four CFA models are shown for each context chunk.
</p>
<div class="table-responsive">
{{ cfa_table_html|safe }}
</div>
</dic>
<div class="image-section">
<h2>Visualizing the order of simulated personas</h2>
<p>
This image shows the order of personas in each context chunk for each value.
For each value (row), the personas are ordered on the x-axis by their expression of this value in the `no_conv` setting (gray).
Therefore, the Rank-Order stability between the `no_conv` chunk and some chunk corresponds to the extent to which the curve is increasing in that chunk.
</p>
<div class="image-container">
<a href="{{ url_for('static', filename='figures/' + model_name + '/ranks.svg') }}" target="_blank">
<img src="{{ url_for('static', filename='figures/' + model_name + '/ranks.svg') }}" alt="Ranks">
</a>
</div>
</div>
<div class="back-button">
<a href="{{ url_for('index') }}" class="custom-button mt-3">Main page</a>
</div>
</div>
<!-- Include Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
<!-- Include jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Include Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
<!-- Include DataTables JS -->
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap5.min.js"></script>
<!-- Initialize DataTables -->
<script>
$(document).ready(function() {
const table = $('table').DataTable({
"paging": false,
"info": false,
"columnDefs": [
{ "orderable": false, "targets": 0 },
{ "searchable": false, "targets": 0 }
],
"order": [[ 2, 'desc' ]],
"drawCallback": function(settings) {
var api = this.api();
api.column(0, {order:'applied'}).nodes().each(function(cell, i) {
cell.innerHTML = i + 1;
});
}
});
});
</script>
</body>
</html>
|