dlpy.layers.Layer¶
-
class
dlpy.layers.
Layer
(name=None, config=None, src_layers=None)¶ Base class for all layers
- Parameters
- namestr, optional
Specifies the name of the layer.
- configdict, optional
Specifies the configuration of the layer.
- src_layersiter-of-Layers, optional
Specifies the source layer(s).
- Returns
-
__init__
(name=None, config=None, src_layers=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([name, config, src_layers])Initialize self.
count_instances
()format_name
([block_num, local_count])Format the name of the layer
get_number_of_instances
()to_model_params
()Convert the model configuration to CAS action parameters
Attributes
can_be_last_layer
layer_id
number_of_instances
rnn_summary
Return a DataFrame containing the layer information for rnn models
summary
Return a DataFrame containing the layer information
type
type_desc
type_label