How does a 'network' object act as a function when performing forward propagation?
古いコメントを表示
I'm using the Neural Network Toolbox. Let us create a dummy network, called net:
input = 1:10;
net = feedforwardnet(5);
net = trainlm(net, input, 2*input);
This network is an object of class network, as evidenced by the class command:
class(net)
ans =
network
What is happening, then, when I perform forward propagation using the following command?
output = net(input);
How am I passing an argument into an object, and not a function? What is happening here? Is this some clever trick, or am I missing something really obvious? How do I replicate this in a custom-made class?
Thank you.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Parallel and Cloud についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!