deepxde icon indicating copy to clipboard operation
deepxde copied to clipboard

use a list of output layer in the PFNN

Open enigne opened this issue 1 year ago • 2 comments

Discussed in https://github.com/lululxvi/deepxde/discussions/1627

Originally posted by enigne January 17, 2024 Hi,

I'm currently using deepxde to do ice sheet modeling , TensorFlow2 backend. I would like to ask if it is possible to make deepxde.nn.PFNN to be able to handle output layers defined by a list, instead of by an integer. For example, deepxde.nn.PFNN([2, [20,20,20], [20,20,20], [2,2,1]],"tanh", "Glorot uniform") which is a parallel net with 2 inputs, and 5 (in total) outputs, but clustered into 2,2,1. In this case, we will get 3 parallel nets, but 5 different output.

enigne avatar Jan 17 '24 21:01 enigne

I guess you have to create your custom network, this is not supported.

tsarikahin avatar Jan 26 '24 14:01 tsarikahin

No it is not. But if you have a code you can modify it. But what is Parallel nets, is it XPINN, CPINN or something else?

praksharma avatar Feb 26 '24 14:02 praksharma