Visualization of activation for LSTM

조회 수: 2 (최근 30일)
Pierre Harouimi
Pierre Harouimi 2018년 12월 3일
편집: Stuart Whipp 2018년 12월 10일
Like deepDreamImage for CNN layers visualization, is there any approach to check/analyze activations of a LSTM layer into MATLAB ?
My workaround for now is to change my TS to image and then check activations, but it is not perfect.
  댓글 수: 2
Stuart Whipp
Stuart Whipp 2018년 12월 10일
Hi,
I recently posted this for yielding activations from an LSTM network.
Simply copy into a .m file (or save attachment) and call as per the usual activation function (specifying layer as a number rather than by name). The basic premise is to slice the end of your network, and place a regression output just after the layer of interest. This will show activations of specified layer as they would be passed to a subsequent layer during 'normal operation
This should work for all SeriesNetworks, I don't think it would work for a DAGnetwork but could amend it to work surely.
Cheers
Stuart
Stuart Whipp
Stuart Whipp 2018년 12월 10일
편집: Stuart Whipp 2018년 12월 10일
Incidentally, LSTM doesn't work with DAG anyway. I think this is exactly what you're looking for in terms of activations from LSTM/BiLSTM. It's not the same thing as 'deepDreamImage' of course, but the usual 'activations' function which I'm sure you've realised only works for non recurrent networks.
As I understand, DeepDream is like saying 'what change to the inputs would make the activation more pronounced upon this layer/channel'. In this manner, we can show the net a picture of a cat and ask what change to said input would make the network assume the answer was say, chicken? Pareidolia
Wikipedia actually gives a good overview. It's essentially running a layer backwards to reverse engineer a desired output. It results in trippy images where small artefacts are overprocessed to produce what look like chicken features on our original cat image.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by