# Path: tensorflow_model_remediation/tools/tutorials_utils/uci/utils.py
# _UCI_DATA_URL_TEMPLATE = ('https://storage.googleapis.com/uci_dataset/adult.{}')
# _UCI_COLUMN_NAMES = [
#     'age', 'workclass', 'fnlwgt', 'education', 'education-num',
#     'marital-status', 'occupation', 'relationship', 'race', 'sex',
#     'capital-gain', 'capital-loss', 'hours-per-week', 'native-country', 'income'
# ]
# def _get_full_uci_dataframe(url):
# def _get_uci_data_from_url(url, sample=None):
# def get_uci_data(split='train', sample=None):
# def df_to_dataset(dataframe, shuffle=False, batch_size=None):
# def get_uci_min_diff_datasets(split='train',
#                               sample=None,
#                               original_batch_size=128,
#                               min_diff_batch_size=32):
# def get_uci_with_min_diff_dataset(split='train', sample=None):
# def get_uci_model(model_class=tf.keras.Model):
#   def _add_input_feature(input_layer, feature=None):


import unittest.mock as mock
import pandas as pd
import tensorflow as tf
from tensorflow_model_remediation.tools.tutorials_utils.uci import utils
# coding=utf-8
# Copyright 2022 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
#
#     http://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.

"""Tests for tensorflow_model_remediation.tools.tutorials_utils.uci.utils."""





class UCIDataTest(tf.test.TestCase):

  def setUp(self):
    super().setUp()

# Path: tensorflow_model_remediation/tools/tutorials_utils/uci/utils.py
# _UCI_DATA_URL_TEMPLATE = ('https://storage.googleapis.com/uci_dataset/adult.{}')
# _UCI_COLUMN_NAMES = [
#     'age', 'workclass', 'fnlwgt', 'education', 'education-num',
#     'marital-status', 'occupation', 'relationship', 'race', 'sex',
#     'capital-gain', 'capital-loss', 'hours-per-week', 'native-country', 'income'
# ]
# def _get_full_uci_dataframe(url):
# def _get_uci_data_from_url(url, sample=None):
# def get_uci_data(split='train', sample=None):
# def df_to_dataset(dataframe, shuffle=False, batch_size=None):
# def get_uci_min_diff_datasets(split='train',
#                               sample=None,
#                               original_batch_size=128,
#                               min_diff_batch_size=32):
# def get_uci_with_min_diff_dataset(split='train', sample=None):
# def get_uci_model(model_class=tf.keras.Model):
#   def _add_input_feature(input_layer, feature=None):


# Path: tensorflow_model_remediation/tools/tutorials_utils/uci/utils_test.py
import unittest.mock as mock
import pandas as pd
import tensorflow as tf
from tensorflow_model_remediation.tools.tutorials_utils.uci import utils

# coding=utf-8
# Copyright 2022 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
#
#     http://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.

"""Tests for tensorflow_model_remediation.tools.tutorials_utils.uci.utils."""





class UCIDataTest(tf.test.TestCase):

  def setUp(self):
    super().setUp()

    utils._uci_full_dataframes = {}  # Clear any caches.