For 2 neural networks (NN1, NN2) of using all the same inputs (x1, x2, x3) and all the same outputs (y1, y2), I know the syntax can be written as:
layer_size = [3] + [[10, 30], [20, 40]] + [2]
net = dde.maps.PFNN(layer_size=layer_size)
However,
For NN1, I would like to specify x1,x3 as inputs and y1 as output
For NN2, I would like to specify x2, y1 (output of NN1) and y2 as output
I could only think of the syntax of defining the layer_size that meets my requirement.
layer_size = [[2],[2]] + [[10, 30], [20, 40]] + [[1],[1]]
net = dde.maps.PFNN(layer_size=layer_size)
Would you please share some insights on what else I should specify in the syntax to meet my requirement using PFNN?
Thanks in advance.
Dear All, I have a question of using the implementation of PFNN from https://github.com/lululxvi/deepxde/pull/96
For 2 neural networks (NN1, NN2) of using all the same inputs (x1, x2, x3) and all the same outputs (y1, y2), I know the syntax can be written as: layer_size = [3] + [[10, 30], [20, 40]] + [2] net = dde.maps.PFNN(layer_size=layer_size)
However, For NN1, I would like to specify x1,x3 as inputs and y1 as output For NN2, I would like to specify x2, y1 (output of NN1) and y2 as output
I could only think of the syntax of defining the layer_size that meets my requirement. layer_size = [[2],[2]] + [[10, 30], [20, 40]] + [[1],[1]] net = dde.maps.PFNN(layer_size=layer_size)
Would you please share some insights on what else I should specify in the syntax to meet my requirement using PFNN? Thanks in advance.