xai4space / meteors

Package for Explanations of Remote Sensing Imaginery
https://xai4space.github.io/meteors/
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

fix: band names with groups of indices #81

Closed Fersoil closed 2 weeks ago

Fersoil commented 1 month ago

Checklist

Reproduction steps

band_mask, band_names = lime.get_band_mask(hsi_0, ["R", ["B", "G"]])

spectral_attributes = lime.get_spectral_attributes( hsi_0, # HSI data band_mask=band_mask, # Band mask target=1, # class analyzed - K - potassium band_names=band_names, # Band names n_samples=10, # Number of perturbation, the more the better explainer is trained but the analsys is slower )

this example fails, because the spectral attributes fails to be created

Error Message and Stack Trace (if applicable)

image

OS

No response

WolodjaZ commented 2 weeks ago

Already fixed