yadll.network

Network

class yadll.network.Network(name=None, layers=None)[source]

The Network class is the container of all the layers of the network.

Parameters:

name : string

The name of the network

layers : list of :class: Layer, optional

create a network from another network.layers

Attributes

layers (list of :class: Layer) the list of layers in the network
params (list of theano shared variables) the list of all the parameters of the network
reguls (symbolic expression) regularization cost for the network
has_unsupervised_layer (bool) True if one of the layer is a subclass of :class: UnsupervisedLayer
add(layer)[source]

add a layer to the Network

Parameters:layer : :class: Layer
get_layer(layer_name)[source]

Get a layer of the network from its name

Parameters:

layer_name : string

name of the layer requested

Returns:

yaddl.layers object

a yadll layer object in the

get_output(**kwargs)[source]

Returns the output of the network

Returns:

symbolic expresssion

output of the network

load_params(file)[source]

load (unpickle) saved parameters of a network.

Parameters:

file : `string’

name of the file containing the saved parameters

Examples

>>> my_network.load_params('my_network_params.yp')
save_params(file)[source]

Save the parameters of the network to file with cPickle

Parameters:

file : string

file name

Examples

>>> my_network.save_params('my_network_params.yp')