Can patternnet have no hidden layers?

Can patternnet or feedforwardnet have no hidden layers? The documentation says the first argument should be a "Row vector containing one or more hidden layers". What if I want no hidden layers at all?

 採用された回答

Greg Heath
Greg Heath 2013 年 6 月 14 日

0 投票

net = patternnet([]);
Similarly for all other net creation functions.
Hope this helps.
Thank you for formally accepting my answer
Greg

1 件のコメント

Andrew Hatch
Andrew Hatch 2013 年 6 月 14 日
Thanks. Exactly what I needed.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by