84 lines
2.3 KiB
HTML
84 lines
2.3 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Feature Ranking</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Feature Ranking</h1>
|
||
|
<form method="POST">
|
||
|
<button type="submit">Выполнить</button>
|
||
|
</form>
|
||
|
|
||
|
<h2>Результаты ранжирования признаков</h2>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Метод</th>
|
||
|
<th>Признак 1</th>
|
||
|
<th>Признак 2</th>
|
||
|
<!-- Добавьте остальные признаки -->
|
||
|
</tr>
|
||
|
{% for method, ranking in feature_rankings.items() %}
|
||
|
<tr>
|
||
|
<td>{{ method }}</td>
|
||
|
{% for value in ranking[:2] %}
|
||
|
<td>
|
||
|
{% if value is iterable %}
|
||
|
{% for item in value %}
|
||
|
{{ item|round(2) }}{% if not loop.last %},{% endif %}
|
||
|
{% endfor %}
|
||
|
{% else %}
|
||
|
{{ value|round(2) }}
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
{% endfor %}
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
|
||
|
<h2>Самые важные признаки</h2>
|
||
|
<ul>
|
||
|
{% for feature_name in top_4_feature_names %}
|
||
|
<li>{{ feature_name }}</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
|
||
|
<h2>Значения X</h2>
|
||
|
<table>
|
||
|
<tr>
|
||
|
{% for col_num in range(4) %}
|
||
|
<th>Признак {{ col_num + 1 }}</th>
|
||
|
{% endfor %}
|
||
|
</tr>
|
||
|
{% for row in X_values %}
|
||
|
<tr>
|
||
|
{% for value in row %}
|
||
|
<td>
|
||
|
{% if value is iterable %}
|
||
|
{% for item in value %}
|
||
|
{{ item|round(2) }}{% if not loop.last %},{% endif %}
|
||
|
{% endfor %}
|
||
|
{% else %}
|
||
|
{{ value|round(2) }}
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
{% endfor %}
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
|
||
|
<h2>Значения Y</h2>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Y</th>
|
||
|
</tr>
|
||
|
{% for value in Y_values %}
|
||
|
<tr>
|
||
|
<td>{{ value|round(2) }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|