Cập nhật mã nguồn và file Colab Cache

This commit is contained in:
2026-07-16 19:32:43 +07:00
parent 25969cb0f5
commit a258db54cd
69 changed files with 3377 additions and 645 deletions
+15 -4
View File
@@ -503,6 +503,7 @@
<label><strong>🧠 Loại Model:</strong></label>
<select id="modelType" required style="font-weight: 600; font-size: 14px;">
<option value="xgboost" selected>🚀 XGBoost (Nhanh, Chính xác cao, Hỗ trợ GPU)</option>
<option value="lightgbm">🌟 LightGBM (Cân bằng phân lớp, Chính xác cao)</option>
<option value="random_forest">🌲 Random Forest (Ổn định, Không cần GPU)</option>
<option value="decision_tree">🌳 Decision Tree (Đơn giản, Nhanh nhất)</option>
<option value="svm">🎯 SVM (Chính xác, Chậm với dữ liệu lớn)</option>
@@ -1397,6 +1398,7 @@
const descriptions = {
'xgboost': '✓ XGBoost: Tốt nhất cho dữ liệu satellite, hỗ trợ GPU, training nhanh',
'lightgbm': '✓ LightGBM: Xử lý dữ liệu mất cân bằng tốt, tốc độ huấn luyện nhanh',
'random_forest': '✓ Random Forest: Ổn định, không overfitting, phù hợp mọi kích thước dữ liệu',
'decision_tree': '✓ Decision Tree: Đơn giản nhất, nhanh nhất, dễ hiểu, phù hợp để test nhanh',
'svm': '✓ SVM: Chính xác cao với dữ liệu nhỏ, chậm với dữ liệu lớn',
@@ -1413,8 +1415,17 @@
learningRateGroup.style.display = '';
useGpuGroup.style.display = '';
document.querySelector('#nEstimatorsGroup label').textContent = 'N Estimators:';
document.getElementById('nEstimators').value = 400;
document.getElementById('maxDepth').value = 12;
document.getElementById('nEstimators').value = 200;
document.getElementById('maxDepth').value = 6;
document.querySelector('#learningRateGroup label').textContent = 'Learning Rate:';
document.getElementById('learningRate').value = 0.05;
} else if (modelType === 'lightgbm') {
nEstimatorsGroup.style.display = '';
learningRateGroup.style.display = '';
useGpuGroup.style.display = '';
document.querySelector('#nEstimatorsGroup label').textContent = 'N Estimators:';
document.getElementById('nEstimators').value = 300;
document.getElementById('maxDepth').value = -1;
document.querySelector('#learningRateGroup label').textContent = 'Learning Rate:';
document.getElementById('learningRate').value = 0.05;
} else if (modelType === 'random_forest') {
@@ -1422,8 +1433,8 @@
learningRateGroup.style.display = 'none';
useGpuGroup.style.display = 'none';
document.querySelector('#nEstimatorsGroup label').textContent = 'Trees:';
document.getElementById('nEstimators').value = 300;
document.getElementById('maxDepth').value = 18;
document.getElementById('nEstimators').value = 100;
document.getElementById('maxDepth').value = 15;
} else if (modelType === 'decision_tree') {
nEstimatorsGroup.style.display = 'none';
learningRateGroup.style.display = 'none';