Estimating inputs from outputs in neural networks

1 次查看(过去 30 天)
If I have a neural networks of 8 inputs and 6 outputs. Is it possible after training to estimate inputs from outputs?

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-6-6
You may try fsolve(). However, due to the complexity of a neural network, it is unlikely that it will be able to find a solution.
fsolve(@(x) net(x)-out_vec, rand(8,1)); % out_vec is 6x1 output vector
You may also try optimization based methods
fmincon(@(x) norm(net(x)-[1.5 -0.5]), rand(3,1)) % fmincon
ga(@(x) norm(net(x(:))-[1.5 -0.5]), 3) % genetic algorithm

Community Treasure Hunt

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

Start Hunting!

Translated by