Commit daf77d69 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

ENH: added comment on missing value imputation.

parent d2d76543
No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment