TeamHG-Memex / eli5

A library for debugging/inspecting machine learning classifiers and explaining their predictions
http://eli5.readthedocs.io
MIT License
2.75k stars 331 forks source link

Alternative dependencies for image interpolation and colormaps #323

Open teabolt opened 5 years ago

teabolt commented 5 years ago

Currently format_as_image (https://github.com/TeamHG-Memex/eli5/pull/315) uses Pillow for array resizing with interpolation, and matplotlib for applying colormaps to grayscale arrays.

It would be good to investigate alternative dependencies for these tasks. matplotlib is only ever used for its colormaps, and perhaps interpolation could be done through pure numpy or scipy (though there may be problems with scipy interpolation https://github.com/scipy/scipy/issues/8210 ?)

Other options include