what is the difference between LayerGraph and DAGNetwork in deep learning?
13 次查看(过去 30 天)
显示 更早的评论
I find that the data structure of LayerGraph and DAGNetwork in neural network toolbox have the same contents. So, is there any difference between them?
3 个评论
Karthiga Mahalingam
2018-7-11
A LayerGraph is used to specifically describe layout of the layers of a DAG network. It has methods to play around with the layer structure such as addLayers, connectLayers. removeLayers etc. A DAGNetwork is the neural network model as a whole and not just the layers. Its' methods involve playing around with the model like predict, classify, activations etc. In short, you'd be using layerGraph to specify a DAGNetwork but there is much more to it like training it etc.
采纳的回答
Maria Duarte Rosa
2019-2-25
LayerGraphs and Layers contain the network architecture (for DAGs and Series networks, respectively). These objects are then passed to trainNetwork for validation and training. LayerGraphs and Layers may have weights or not, but they cannot be used for prediction. One can only call prediction on DAGNetwork and SeriesNetwork objects. These objects contain the validated and trained network.
From R2018b to convert a LayerGraph and Layers object with weights and all the needed parameters to a DAGNetwork/SeriesNetwork one can call assembleNetwork, example:
net = assembleNetwork(layers);
1 个评论
Royi Avital
2021-12-2
One can not use assembleNetwork(layerGraph). Is there a way to validate and initializa a layerGraph without training?
更多回答(2 个)
Mingrun Wang
2018-7-25
the pair of LayerGraph and DAGnetwork remsembles with one of Layer and SeriesNetwork(in my mind)
3 个评论
Alaa ElDin ElHilaly
2019-1-22
Then how can we convert a LayerGraph we trained to seriesNetwork to use it in classifications?
Handenur Caliskan
2019-1-24
I have the same situtation too. How can we change the trained layergraph to a seriesnetwork or dagnetwork?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Custom Training Loops 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!