From daf77d69138e8ea98d825e30a5d33de4dc6e5053 Mon Sep 17 00:00:00 2001
From: Raffaele Gaetano <raffaele.gaetano@cirad.fr>
Date: Tue, 28 Nov 2023 20:52:38 +0100
Subject: [PATCH] ENH: added comment on missing  value imputation.

---
 OBIA/OBIABase.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/OBIA/OBIABase.py b/OBIA/OBIABase.py
index 11b8110..964b01c 100644
--- a/OBIA/OBIABase.py
+++ b/OBIA/OBIABase.py
@@ -319,6 +319,7 @@ class OBIABase:
         for tilenum in self.tiles.keys():
             tile_data = self.get_full_stats_on_tile(tilenum)
             L = tile_data.index.to_numpy(dtype=np.int32)
+            # Probably sub-optimal and error-prone, uses mean value from tile only 
             imp = SimpleImputer(missing_values=np.nan, strategy='mean')
             X = imp.fit_transform(tile_data[vars].to_numpy())
             if normalize is not None:
-- 
GitLab