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
@@ -0,0 +1,38 @@
{
"timestamp": "2026-07-16T11:20:51.605651",
"data_source": "Microsoft Planetary Computer STAC",
"collections": [
"sentinel-2-l2a",
"sentinel-1-rtc"
],
"features": [
"NDVI",
"VH",
"VV"
],
"training_samples": 678,
"testing_samples": 226,
"test_size": 0.2,
"train_accuracy": 0.3421828908554572,
"test_accuracy": 0.37610619469026546,
"model_type": "random_forest",
"device": "cpu",
"n_estimators": 200,
"max_depth": 30,
"n_features": 3,
"n_classes": 8,
"class_names": [
"Lua tom",
"Lua",
"CHN",
"CLN",
"TS",
"Song",
"Dat xay dung",
"Rung"
],
"bbox": null,
"time_range": "2022-09-01/2022-10-01",
"resolution": 1000,
"notes": "Random Forest model trained using Microsoft Planetary Computer STAC features."
}
@@ -0,0 +1,24 @@
{
"model_type": "LightGBM_Balanced",
"num_classes": 8,
"classes": [
"Lua tom",
"Lua",
"CHN",
"CLN",
"TS",
"Song",
"Dat xay dung",
"Rung"
],
"num_features": 3,
"accuracy": 0.18584070796460178,
"precision": 0.2845953404521604,
"recall": 0.18584070796460178,
"f1_score": 0.1476510567467163,
"params": {
"n_estimators": 300,
"max_depth": -1
},
"description": "LightGBM trained on real Planetary Computer data with balanced class weights"
}
@@ -0,0 +1,20 @@
{
"model_type": "RandomForest_RealData",
"num_classes": 8,
"classes": [
"Lua tom",
"Lua",
"CHN",
"CLN",
"TS",
"Song",
"Dat xay dung",
"Rung"
],
"num_features": 3,
"accuracy": 0.2743362831858407,
"precision": 0.3300717350496111,
"recall": 0.2743362831858407,
"f1_score": 0.21573264574418863,
"description": "Random Forest trained on real Planetary Computer data"
}
@@ -0,0 +1,195 @@
{
"timestamp": "2026-01-05T12:43:48.476383",
"data_source": "Microsoft Planetary Computer STAC",
"collections": [
"sentinel-2-l2a",
"sentinel-1-rtc"
],
"features": [
"ndvi_mean",
"ndvi_min",
"ndvi_max",
"ndvi_std",
"ndvi_range",
"ndwi_mean",
"ndbi_mean",
"evi_mean"
],
"feature_mode": "odc",
"training_samples": 868,
"testing_samples": 218,
"test_size": 0.2,
"train_accuracy": 1.0,
"test_accuracy": 0.7568807339449541,
"model_type": "xgboost",
"device": "cuda:0",
"n_estimators": 100,
"max_depth": 20,
"learning_rate": 0.1,
"epochs": null,
"n_features": 8,
"n_classes": 8,
"class_names": [
0,
1,
2,
3,
4,
5,
6,
7
],
"classification_report": {
"0": {
"precision": 0.6666666666666666,
"recall": 0.5,
"f1-score": 0.5714285714285714,
"support": 12.0
},
"1": {
"precision": 0.6976744186046512,
"recall": 0.7317073170731707,
"f1-score": 0.7142857142857143,
"support": 41.0
},
"2": {
"precision": 0.375,
"recall": 0.3333333333333333,
"f1-score": 0.35294117647058826,
"support": 9.0
},
"3": {
"precision": 0.65625,
"recall": 0.6176470588235294,
"f1-score": 0.6363636363636364,
"support": 34.0
},
"4": {
"precision": 0.7241379310344828,
"recall": 0.8076923076923077,
"f1-score": 0.7636363636363637,
"support": 26.0
},
"5": {
"precision": 0.9629629629629629,
"recall": 1.0,
"f1-score": 0.9811320754716981,
"support": 26.0
},
"6": {
"precision": 0.8863636363636364,
"recall": 0.8863636363636364,
"f1-score": 0.8863636363636364,
"support": 44.0
},
"7": {
"precision": 0.7307692307692307,
"recall": 0.7307692307692307,
"f1-score": 0.7307692307692307,
"support": 26.0
},
"accuracy": 0.7568807339449541,
"macro avg": {
"precision": 0.7124781058002038,
"recall": 0.700939110506901,
"f1-score": 0.7046150505986799,
"support": 218.0
},
"weighted avg": {
"precision": 0.7530127266363499,
"recall": 0.7568807339449541,
"f1-score": 0.7537599577259892,
"support": 218.0
}
},
"confusion_matrix": [
[
6,
3,
0,
0,
2,
0,
1,
0
],
[
1,
30,
1,
4,
2,
1,
2,
0
],
[
0,
3,
3,
2,
1,
0,
0,
0
],
[
0,
5,
2,
21,
0,
0,
0,
6
],
[
2,
0,
1,
0,
21,
0,
2,
0
],
[
0,
0,
0,
0,
0,
26,
0,
0
],
[
0,
0,
0,
1,
3,
0,
39,
1
],
[
0,
2,
1,
4,
0,
0,
0,
19
]
],
"bbox": [
105.561448,
9.264228,
106.298669,
9.931334
],
"time_range": "2023-03-01/2023-12-31",
"resolution": 20
}