(self)
Sets the default training hyperparameters.
Sets the default training hyperparameters.
Sets the default training hyperparameters .
def __init__(self):
    """Sets the default training hyperparameters."""
    # Number of examples per epoch of training data.
    self.num_examples_per_epoch = 586363

    # Optimizer for training the model.
    self.optimizer = "SGD"

    # Learning rate for the initial phase of training.
    self.initial_learning_rate = 2.0
    self.learning_rate_decay_factor = 0.5
    self.num_epochs_per_decay = 8.0

    # Learning rate when fine tuning the Inception v3 parameters.
    self.train_inception_learning_rate = 0.0005

    # If not None, clip gradients to this value.
    self.clip_gradients = 5.0

    # How many model checkpoints to keep.
    self.max_checkpoints_to_keep = 5
def __init__ ( self ) : # Number of examples per epoch of training data. self . num_examples_per_epoch = 586363 # Optimizer for training the model. self . optimizer = "SGD" # Learning rate for the initial phase of training. self . initial_learning_rate = 2.0 self . learning_rate_decay_factor = 0.5 self . num_epochs_per_decay = 8.0 # Learning rate when fine tuning the Inception v3 parameters. self . train_inception_learning_rate = 0.0005 # If not None, clip gradients to this value. self . clip_gradients = 5.0 # How many model checkpoints to keep. self . max_checkpoints_to_keep = 5