original_docstring: Two-stepped transfer learning.
  
          The idea is to freeze base layers for a certain number of epochs
          and then open all layers for training.
  
          Reference: https://arxiv.org/abs/1611.05244
          
docstring: Two-stepped transfer learning.
  The idea is to freeze base layers for a certain number of epochs
  and then open all layers for training.
  
  
docstring_tokens: Two - stepped transfer learning . The idea is to freeze base layers for a certain number of epochs and then open all layers for training .
code: def two_stepped_transfer_learning(self, epoch, fixbase_epoch, open_layers, model=None):
          """Two-stepped transfer learning.
  
          The idea is to freeze base layers for a certain number of epochs
          and then open all layers for training.
  
          Reference: https://arxiv.org/abs/1611.05244
          """
          model = self.model if model is None else model
          if model is None:
              return
  
          if (epoch + 1) <= fixbase_epoch and open_layers is not None:
              print('* Only train {} (epoch: {}/{})'.format(open_layers, epoch + 1, fixbase_epoch))
              open_specified_layers(model, open_layers)
          else:
              open_all_layers(model)
code_tokens: def two_stepped_transfer_learning ( self , epoch , fixbase_epoch , open_layers , model = None ) : model = self . model if model is None else model if model is None : return if ( epoch + 1 ) <= fixbase_epoch and open_layers is not None : print ( '* Only train {} (epoch: {}/{})' . format ( open_layers , epoch + 1 , fixbase_epoch ) ) open_specified_layers ( model , open_layers ) else : open_all_layers ( model )
short_docstring: Two-stepped transfer learning.
short_docstring_tokens: Two - stepped transfer learning .
comment: """Two-stepped transfer learning.
  
          The idea is to freeze base layers for a certain number of epochs
          and then open all layers for training.
  
          Reference: https://arxiv.org/abs/1611.05244
          """