class_docstr: The objective for optimization during tuning.
  
  Args:
      name: String. The name of the objective.
      direction: String. The value should be "min" or "max" indicating
          whether the objective value should be minimized or maximized.
class_docstr_tok: ["The","objective","for","optimization","during","tuning",".","Args",":","name",":","String",".","The","name","of","the","objective",".","direction",":","String",".","The","value","should","be","``","min","''","or","``","max","''","indicating","whether","the","objective","value","should","be","minimized","or","maximized","."]
code: def __init__(self, name, direction):
      self.name = name
      self.direction = direction
  
imports: from keras_tuner.api_export import keras_tuner_export
  from keras_tuner.engine import metrics_tracking
label_desc: Use image node_id 1 to create a new Objective object  with example: obj = Objective(name, direction)