def _freeze_layers(self, model, depth):
    ' Freeze Network Layers\n\n        Parameters\n        ----------\n        model :\n            Keras model\n        depth : int\n            Depth of layers to be frozen\n\n        '
    for layer in model.layers[:depth]:
        layer.trainable = False
Freeze Network Layers

Parameters
----------
model :
    Keras model
depth : int
    Depth of layers to be frozen
def _freeze_layers(self, model, depth):
    ' Freeze Network Layers\n\n        Parameters\n        ----------\n        model :\n            Keras model\n        depth : int\n            Depth of layers to be frozen\n\n        '
    for layer in model.layers[:depth]:
        layer.trainable = False