MATLAB Answers

Estimating inputs from outputs in neural networks

2 views (last 30 days)
Yaser
Yaser on 5 Jun 2020
Answered: Ameer Hamza on 6 Jun 2020
If I have a neural networks of 8 inputs and 6 outputs. Is it possible after training to estimate inputs from outputs?

  0 Comments

Sign in to comment.

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

  0 Comments

Sign in to comment.