def unroll(deep_autoencoder):
 net = Network(deep_autoencoder.layers)
 net.weights = deep_autoencoder.weights[:(len(deep_autoencoder.layers) - 1)]
 net.biases = deep_autoencoder.biases[:(len(deep_autoencoder.layers) - 1)]
 return net

def unroll ( deep_autoencoder ) : net = Network ( deep_autoencoder . layers ) net . weights = deep_autoencoder . weights [ : ( len ( deep_autoencoder . layers ) - 1 ) ] net . biases = deep_autoencoder . biases [ : ( len ( deep_autoencoder . layers ) - 1 ) ] return net
return a network that contains the compression stage of the deep_autoencoder .