%% Import Keras Network and Weights
% Specify the network and the weight files to import.

modelfile = 'digitsDAGnet.json';
weights = 'digitsDAGnet.weights.h5';

% This is a directed acyclic graph convolutional neural network trained on the digits data.
% Import network architecture and import the weights from separate files. The .json file does not have an output layer or information on the cost function. Specify the output layer type when you import the files.

net = importKerasNetwork(modelfile,'WeightFile',weights, ...
      'OutputLayerType','classification')

% Copyright 2018 The MathWorks, Inc.