How to visualize RNN/LSTM weights in Keras/TensorFlow?
问题 I've come across research publications and Q&A's discussing a need for inspecting RNN weights; some related answers are in the right direction, suggesting get_weights() - but how do I actually visualize the weights meaningfully ? Namely, LSTMs and GRUs have gates , and all RNNs have channels that serve as independent feature extractors - so how do I (1) fetch per-gate weights, and (2) plot them in an informative manner? 回答1: Keras/TF build RNN weights in a well-defined order, which can be