Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.6K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

NN architecture to solve Problem like Target = Input1 * Input 2 + Input3

Posted 2 years ago
POSTED BY: Don Baechtel
2 Replies
Posted 2 years ago

THANKS.

POSTED BY: Don Baechtel

It really depends on what you want your trainable parameters to be. For a model such as

a * Input1 * Input 2 + b * Input3 + c

you can use this network

FunctionLayer[
 Function[
  NetArray[]*#Input1*#Input2 + NetArray[]*#Input3 + NetArray[]]]

If, let's say, the input are 5-d arrays, the fully specified net will be

d = 5;
net = NetInitialize@FunctionLayer[Function[
    NetArray["Dimensions" -> d]*#Input1*#Input2 +
     NetArray["Dimensions" -> d]*#Input3 +
     NetArray["Dimensions" -> d]],
   "Input1" -> d, "Input2" -> d, "Input3" -> d]
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard