DAGNetwork
(Not recommended) Directed acyclic graph (DAG) network for deep learning
DAGNetwork objects are not recommended. Use dlnetwork objects instead. For more
            information, see Version
            History.
Description
A DAG network is a neural network for deep learning with layers arranged as a directed acyclic graph. A DAG network can have a more complex architecture in which layers have inputs from multiple layers and outputs to multiple layers.
Creation
There are several ways to create a DAGNetwork object:
- Load a pretrained network such as - squeezenet,- googlenet,- resnet50,- resnet101, or- inceptionv3. For an example, see Load SqueezeNet Network. For more information about pretrained networks, see Pretrained Deep Neural Networks.
- Train or fine-tune a network using - trainNetwork.
- Import a pretrained network from TensorFlow™-Keras, TensorFlow 2, Caffe, or the ONNX™ (Open Neural Network Exchange) model format. - For a Keras model, use - importKerasNetwork. For an example, see Import and Plot Keras Network.
- For a TensorFlow model in the saved model format, use - importTensorFlowNetwork. For an example, see Import TensorFlow Network as DAGNetwork to Classify Image.
- For a Caffe model, use - importCaffeNetwork. For an example, see Import Caffe Network.
- For an ONNX model, use - importONNXNetwork. For an example, see Import ONNX Network as DAGNetwork.
 
- Assemble a deep learning network from pretrained layers using the - assembleNetworkfunction.
Note
To learn about other pretrained networks, see Pretrained Deep Neural Networks.
Properties
Object Functions
| activations | (Not recommended) Compute deep learning network layer activations | 
| classify | (Not recommended) Classify data using trained deep learning neural network | 
| predict | (Not recommended) Predict responses using trained deep learning neural network | 
| plot | Plot neural network architecture | 
| predictAndUpdateState | (Not recommended) Predict responses using a trained recurrent neural network and update the network state | 
| classifyAndUpdateState | (Not recommended) Classify data using a trained recurrent neural network and update the network state | 
| resetState | Reset state parameters of neural network | 
Examples
Extended Capabilities
Version History
Introduced in R2017bSee Also
dlnetwork | imagePretrainedNetwork | trainingOptions | trainnet | minibatchpredict | dag2dlnetwork | predict | scores2label | importKerasNetwork | plot | analyzeNetwork



