How to Invert a Neural Network

조회 수: 10 (최근 30일)
Blake Van Winkle
Blake Van Winkle 2020년 1월 13일
편집: Taimoor Tariq 2020년 2월 5일
I have trained a model with states as inputs and an output of the cumulative distribution function (CDF) of any specific state, which is designed to mitiage any confusion in the network if multiple points have the same probability. I would like to flip the model instead of training an entirely new model because of the computational requirements and the probability that they won't agree with each other. Does anyone know how to do this with Matlab's Deep Learning Toolbox?
Trained: CDF = NN(X)
Invert: X = NN(CDF)

채택된 답변

Taimoor Tariq
Taimoor Tariq 2020년 2월 3일
  댓글 수: 2
Blake Van Winkle
Blake Van Winkle 2020년 2월 4일
To Taimoor:
I appreciate the answer. Have you tried to integrate the Deep Learning toolbox into this process?
Thanks,
Blake
Taimoor Tariq
Taimoor Tariq 2020년 2월 5일
편집: Taimoor Tariq 2020년 2월 5일
The code is compatible with Image input CNNs defined using matconvnet. Now if you have a Image input model trained on the Deep Learning Toolbox, you could probably export it to matconvnet using ONNX and then use the code. However, I think in your case In dont think you are using images as input, you would probably have to tweak the code a lot, or maybe write your own.

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

추가 답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 1월 17일
If your network is a fully connected, has no non-linearities(like activations)/non-linear layers and has invertible wieght matrices for all your layers, then only you can invert your trained network by using the inverted weight matrices & bias vectors.
  댓글 수: 3
John D'Errico
John D'Errico 2020년 1월 22일
Note that any such inverse as you desire need not be unique, or even terribly well posed, just as would be true for any inverse of a general nonlinear relationship.
Blake Van Winkle
Blake Van Winkle 2020년 1월 24일
To John:
I would not have a problem with that. Do you know how to do that with the Deep Learning toolbox?
-Blake

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

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by