3
$\begingroup$

Let's say I have a neural network $f$ that takes input $\vec x \in \mathbb {R}^n$ and produces output $f(\vec x) \in \mathbb{R}$.

How can I find $\hat x = \underset{\vec x}{\arg\max} \; f(\vec x)$?

$\endgroup$

1 Answer 1

3
$\begingroup$

You would have to do it in the same way you train it: numerical optimisation.

This comes down to applying backprop but having a loss function of the negative output and not changing the weights, but adapting the input. You would have to change your neural net software in a way that you also get the deltas at the input layer.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.