How to Invert a Neural Network
12 ビュー (過去 30 日間)
古いコメントを表示
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)
0 件のコメント
採用された回答
Taimoor Tariq
2020 年 2 月 3 日
Maybe this will help.
2 件のコメント
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
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
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.
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!