# Path: tensorflow_decision_forests/component/py_tree/objective.py
# class AbstractObjective(object):
# class ClassificationObjective(AbstractObjective):
# class RegressionObjective(AbstractObjective):
# class RankingObjective(AbstractObjective):
#   def __init__(self, label: str):
#   def label(self):
#   def task(self) -> Task:
#   def __init__(self,
#                label: str,
#                classes: Optional[List[str]] = None,
#                num_classes: Optional[int] = None):
#   def num_classes(self) -> int:
#   def classes(self) -> Optional[List[str]]:
#   def has_integer_labels(self) -> bool:
#   def task(self) -> "Task":
#   def __repr__(self):
#   def __eq__(self, other):
#   def task(self) -> Task:
#   def __repr__(self):
#   def __eq__(self, other):
#   def __init__(self, label: str, group: str):
#   def group(self) -> str:
#   def task(self) -> Task:
#   def __repr__(self):
#   def __eq__(self, other):


from absl import logging
from absl.testing import parameterized
from tensorflow_decision_forests.component.py_tree import objective as objective_lib
import tensorflow as tf
# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function



# pylint: disable=g-long-lambda


class ObjectiveTest(parameterized.TestCase, tf.test.TestCase):

  def test_classification(self):

# Path: tensorflow_decision_forests/component/py_tree/objective.py
# class AbstractObjective(object):
# class ClassificationObjective(AbstractObjective):
# class RegressionObjective(AbstractObjective):
# class RankingObjective(AbstractObjective):
#   def __init__(self, label: str):
#   def label(self):
#   def task(self) -> Task:
#   def __init__(self,
#                label: str,
#                classes: Optional[List[str]] = None,
#                num_classes: Optional[int] = None):
#   def num_classes(self) -> int:
#   def classes(self) -> Optional[List[str]]:
#   def has_integer_labels(self) -> bool:
#   def task(self) -> "Task":
#   def __repr__(self):
#   def __eq__(self, other):
#   def task(self) -> Task:
#   def __repr__(self):
#   def __eq__(self, other):
#   def __init__(self, label: str, group: str):
#   def group(self) -> str:
#   def task(self) -> Task:
#   def __repr__(self):
#   def __eq__(self, other):


# Path: tensorflow_decision_forests/component/py_tree/objective_test.py
from absl import logging
from absl.testing import parameterized
from tensorflow_decision_forests.component.py_tree import objective as objective_lib
import tensorflow as tf

# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function



# pylint: disable=g-long-lambda


class ObjectiveTest(parameterized.TestCase, tf.test.TestCase):

  def test_classification(self):

    objective = objective_lib.ClassificationObjective(