2
$\begingroup$

How to develop a neural network which can perform subtraction?

$\endgroup$
  • 1
    $\begingroup$ What have you tried? What are you confused about? Can you share more of the research you have already performed? $\endgroup$ – kbrose Aug 28 '18 at 16:06
  • $\begingroup$ Here is a working example for up to 5 digits, with a train/test score of 99%: github.com/keras-team/keras/blob/master/examples/…. It uses LSTM layers. $\endgroup$ – n1k31t4 Aug 28 '18 at 17:22
1
$\begingroup$

It is an easy task. Make some training data, two inputs and one output. this is a regression task. You can train a simple MLP or you can employ RNNs such as LSTM for this task. Take a look at here.

$\endgroup$
1
$\begingroup$

Yes, there has been recent research on this that makes this task more efficient than feeding it in an RNN.

https://arxiv.org/pdf/1808.00508.pdf

There are implementations in multiple libraries.

$\endgroup$
  • 1
    $\begingroup$ While I think it is great you are linking recent work from great researchers, it would be better for the audience if you could summarise that paper in a few sentences. Answers containing only links should otherwise be made as comments. $\endgroup$ – n1k31t4 Aug 28 '18 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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