I'm new to neural networks. Im trying to understand what kind of solutions a multilayer perceptron can learn to achieve.
Is it possible to train an MLP to do multiplication by just giving discrete amount of examples?
I could teach it how to do multiplication on certain numbers (those from training dataset of course) but it can not estimate other multiplications correctly.
I used 1 hidden layer (TanH, 10 units) and 1 output layer (Identity), both hidden layer and output layer were biased and were trained using Momentum optimizer.
dataset
0, 5 = 0
1, 1 = 1
2, 3 = 6
3, 7 = 21
4, 3 = 12
5, 9 = 45
7,7 = 49
13,13 = 169
It gives correct results for this dataset but for example calculating 5 * 5
gives wrong number like 32
.
Am I expecting too much from MLP? what dataset (or layer setup) I should give to the network to be able to multiply any given number?