Create feedforward ANN specifying number of input /output variables, hidden layer, weight and bias vales without dataset

5 ビュー (過去 30 日間)
We want to create feedforward net of given topology, e.g. one input layer with 3 nurone, one hidden layer 5 nurone, and output layer with 2 nurone. Additionally, We want to specify (not view or readonly) the weight and bias values, transfer functions of our choice. The feedforward net (without training) will be used to predict 2x1 output from 3x1 input. Basically Y=LWi*tansig(IWi*X'+bias1)+bias2 serves our purpose, but we want it is wrapped in a networkobject not as eqn. We donot want to configure it by presenting dataset in hand, which we donot have. Looking a guidence where we can use a syntax similar to this net = network(numInputs,numLayers,biasConnect,inputConnect,layerConnect,outputConnect)

回答 (1 件)

Sanjana
Sanjana 2023 年 3 月 29 日
Hi,
I understand that you need help with creating a custom feedforward neural network.You can use the “network” function in MATLAB, and create a feedforward ANN using the below syntax,
net=network(numInputs,numLayers,biasConnect,inputConnect,layerConnect,outputConnect)
Please refer to the below link for detailed explanation,
Hope this helps!
  1 件のコメント
Biswanath Mahanty
Biswanath Mahanty 2023 年 4 月 7 日
Thank you Sanjana, I am already aware of this network function. But could not really figure out. A very small example e.g., 3 predictors, two hidden layer with 4 neuron, and two output will be of great help.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFunction Approximation and Clustering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by