class_docstr: Abstract base class for different Scalarizers.
  
  The Scalarizer class is a callable that transforms multiple objectives into
  a single scalar reward.
class_docstr_tok: ["Abstract","base","class","for","different","Scalarizers",".","The","Scalarizer","class","is","a","callable","that","transforms","multiple","objectives","into","a","single","scalar","reward","."]
docstr: Initialize the Scalarizer.
  
  Args:
    num_of_objectives: A non-negative integer indicating the number of
      objectives to scalarize.
  
  Raises:
    ValueError: if `not isinstance(num_of_objectives, int)`.
    ValueError: if `num_of_objectives < 2`.
docstr_tok: ["Initialize","the","Scalarizer",".","Args",":","num_of_objectives",":","A","non-negative","integer","indicating","the","number","of","objectives","to","scalarize",".","Raises",":","ValueError",":","if","`","not","isinstance","(","num_of_objectives",",","int",")","`",".","ValueError",":","if","`","num_of_objectives","<","2","`","."]
code: def __init__(self, num_of_objectives: int):
      """Initialize the Scalarizer.
  
      Args:
        num_of_objectives: A non-negative integer indicating the number of
          objectives to scalarize.
  
      Raises:
        ValueError: if `not isinstance(num_of_objectives, int)`.
        ValueError: if `num_of_objectives < 2`.
      """
      if not isinstance(num_of_objectives, int):
          raise ValueError(
              "Scalarizer should be initialized with an integer representing the "
              "number of objectives, but the type of the input is {}.".format(
                  type(num_of_objectives)
              )
          )
      if num_of_objectives < 2:
          raise ValueError(
              "Scalarizer should be used with at least two objectives, but only {}"
              " are given.".format(num_of_objectives)
          )
      self._num_of_objectives = num_of_objectives
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import copy
  from typing import Callable, Dict, NamedTuple, Optional, Sequence, Union
  import numpy
  import six
  import tensorflow.compat.v2
label_desc: Use image node_id 1 to create a new Scalarizer object from inherited base classes: tf with example: obj = Scalarizer(num_of_objectives)