Estimating inputs from outputs in neural networks
1 view (last 30 days)
Show older comments
If I have a neural networks of 8 inputs and 6 outputs. Is it possible after training to estimate inputs from outputs?
0 Comments
Answers (1)
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!