Clear Filters
Clear Filters

How to add different Inputs into different layers in ANN model

2 views (last 30 days)
Hi there,
I want to make an ANN model with 2 hidden layers, (5 hidden nodes in each layer). I want to have 3 input for my first layer (tOut,tRet,Sodamp) and then one external input (Scc) for my 2nd layer. I wrote the code below for the first layer but I do not know how to add the Scc input to my second layer. Does anyone know the answer?
hiddenNodes = [5 5];
net = fitnet(hiddenNodes)
view(net);
x = [tOut,tRet,Sodamp]';
y = tMix';
[net,tr] = train(net,x,y);

Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!