52 lines
1.9 KiB
HTML
52 lines
1.9 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>
|
|
<tr>
|
|
<td>Линейная регрессия</td>
|
|
<td>{{ feature_rankings['Linear Regression'][0] if 'Linear Regression' in feature_rankings else '' }}</td>
|
|
<td>{{ feature_rankings['Linear Regression'][1] if 'Linear Regression' in feature_rankings else '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>RFE</td>
|
|
<td>{{ feature_rankings['RFE'][0] if 'RFE' in feature_rankings else '' }}</td>
|
|
<td>{{ feature_rankings['RFE'][1] if 'RFE' in feature_rankings else '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Случайные деревья</td>
|
|
<td>{{ feature_rankings['Random Forest'][0] if 'Random Forest' in feature_rankings else '' }}</td>
|
|
<td>{{ feature_rankings['Random Forest'][1] if 'Random Forest' in feature_rankings else '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Средняя оценка</td>
|
|
<td>{{ feature_rankings['Mean Ranking'][0] if 'Mean Ranking' in feature_rankings else '' }}</td>
|
|
<td>{{ feature_rankings['Mean Ranking'][1] if 'Mean Ranking' in feature_rankings else '' }}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>Самые важные признаки</h2>
|
|
<ul>
|
|
{% for feature_name in top_4_feature_names %}
|
|
<li>{{ feature_name }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</body>
|
|
</html>
|