<reponame>ctivanovich/asl-ml-immersion<gh_stars>0
# Copyright 2021 Google LLC. All Rights Reserved.
#
# 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.
"""Covertype model  taxi model features."""
import tensorflow as tf
import tensorflow_model_analysis as tfma
import tensorflow_transform as tft
from tensorflow_transform.tf_metadata import schema_utils

NUMERIC_FEATURE_KEYS = [
    'age',
    'trestbps',
    'chol',
    'thalach',
    'oldpeak',
    'slope'
]

CATEGORICAL_FEATURE_KEYS = ['sex', 'cp', 'fbs', 'restecg', 'exang', 'ca', 'thal']

BUCKET_FEATURE_KEYS = []

BUCKET_FEATURE_BUCKET_COUNT = []

LABEL_KEY = 'target'
NUM_CLASSES = 4

def transformed_name(key):
  return key + '_xf'

# Copyright 2021 Google LLC. All Rights Reserved.
#
# 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.
"""Covertype model  taxi model features."""
import tensorflow as tf
import tensorflow_model_analysis as tfma
import tensorflow_transform as tft
from tensorflow_transform.tf_metadata import schema_utils

NUMERIC_FEATURE_KEYS = [
    'age',
    'trestbps',
    'chol',
    'thalach',
    'oldpeak',
    'slope'
]

CATEGORICAL_FEATURE_KEYS = ['sex', 'cp', 'fbs', 'restecg', 'exang', 'ca', 'thal']

BUCKET_FEATURE_KEYS = []

BUCKET_FEATURE_BUCKET_COUNT = []

LABEL_KEY = 'target'
NUM_CLASSES = 4

def transformed_name(key):
  return key + '_xf'
# Copyright 2021 Google LLC. All Rights Reserved. # # 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. Covertype model  taxi model features.