Estimating inputs from outputs in neural networks

1 view (last 30 days)
If I have a neural networks of 8 inputs and 6 outputs. Is it possible after training to estimate inputs from outputs?

Answers (1)

Ameer Hamza
Ameer Hamza on 6 Jun 2020
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!