File size: 6,103 Bytes
c391d59 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Prediction Results</title>
<style>
body {
background-color: #041C32;
color: #ECB365;
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
.container {
max-width: 600px;
margin: auto;
background-color: #04293A;
padding: 20px;
border-radius: 8px;
}
h1 {
color: #ECB365;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #064663;
padding: 10px;
text-align: center;
}
th {
background-color: #064663;
}
.positive {
color: green;
font-weight: bold;
}
.negative {
color: red;
font-weight: bold;
}
.btn {
display: block;
margin: 20px auto 0;
padding: 10px 15px;
background-color: #ECB365;
color: #041C32;
border: none;
border-radius: 4px;
text-decoration: none;
font-weight: bold;
width: fit-content;
}
/* Tooltip container */
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
}
/* Tooltip text (info card) */
.tooltip .tooltip-content {
visibility: hidden;
width: 200px;
background-color: #ECB365;
color: #041C32;
text-align: center;
border-radius: 6px;
padding: 10px;
position: absolute;
z-index: 1;
bottom: 125%; /* Position above the text */
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.tooltip .tooltip-content::after {
content: "";
position: absolute;
top: 100%; /* At the bottom of the tooltip */
left: 50%;
transform: translateX(-50%);
border-width: 5px;
border-style: solid;
border-color: #ECB365 transparent transparent transparent;
}
/* Show tooltip on hover */
.tooltip:hover .tooltip-content {
visibility: visible;
opacity: 1;
}
</style>
</head>
<body>
<div class="container">
<h1>Prediction Results</h1>
<p>Note: This is a demo model results, so results may vary and be weak on predictions.</p>
<table>
<tr>
<th>Model</th>
<th>Predicted Price</th>
<th>Difference (Price - EngAmt)</th>
</tr>
<tr>
<td>
<div class="tooltip">
GIA
<div class="tooltip-content">
<strong>Note:</strong> this GIA model is trainned over 372 records.
</div>
</div>
</td>
<td>{{ gia_price }}</td>
<td>
{% if gia_diff >= 0 %}
<span class="positive">{{ gia_diff }}</span>
{% else %}
<span class="negative">{{ gia_diff }}</span>
{% endif %}
</td>
</tr>
<tr>
<td>
<div class="tooltip">
Grade
<div class="tooltip-content">
<strong>Note:</strong> this Grade model is trainned over 641 records.
</div>
</div>
</td>
<td>{{ grade_price }}</td>
<td>
{% if grade_diff >= 0 %}
<span class="positive">{{ grade_diff }}</span>
{% else %}
<span class="negative">{{ grade_diff }}</span>
{% endif %}
</td>
</tr>
<tr>
<td>
<div class="tooltip">
By Grade
<div class="tooltip-content">
<strong>Note:</strong> this By Grade model is trainned over 641 records.
</div>
</div>
</td>
<td>{{ bygrade_price }}</td>
<td>
{% if bygrade_diff >= 0 %}
<span class="positive">{{ bygrade_diff }}</span>
{% else %}
<span class="negative">{{ bygrade_diff }}</span>
{% endif %}
</td>
</tr>
<tr>
<td>
<div class="tooltip">
Makable
<div class="tooltip-content">
<strong>Note:</strong> this Makable model is trainned over 1774 records.
</div>
</div>
</td>
<td>{{ makable_price }}</td>
<td>
{% if makable_diff >= 0 %}
<span class="positive">{{ makable_diff }}</span>
{% else %}
<span class="negative">{{ makable_diff }}</span>
{% endif %}
</td>
</tr>
</table>
<a href="{{ url_for('home') }}" class="btn">Make Another Prediction</a>
</div>
</body>
</html>
|