{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "wdeKOEkv1Fe8" }, "source": [ "##### Copyright 2021 The TensorFlow Authors." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "cellView": "form", "execution": { "iopub.execute_input": "2024-08-02T09:18:42.185879Z", "iopub.status.busy": "2024-08-02T09:18:42.185308Z", "iopub.status.idle": "2024-08-02T09:18:42.189092Z", "shell.execute_reply": "2024-08-02T09:18:42.188447Z" }, "id": "c2jyGuiG1gHr" }, "outputs": [], "source": [ "#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", "# You may obtain a copy of the License at\n", "#\n", "# https://www.apache.org/licenses/LICENSE-2.0\n", "#\n", "# Unless required by applicable law or agreed to in writing, software\n", "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", "# See the License for the specific language governing permissions and\n", "# limitations under the License." ] }, { "cell_type": "markdown", "metadata": { "id": "23R0Z9RojXYW" }, "source": [ "# TFX Estimator Component Tutorial\n", "\n", "***A Component-by-Component Introduction to TensorFlow Extended (TFX)***" ] }, { "cell_type": "markdown", "metadata": { "id": "LidV2qsXm4XC" }, "source": [ "Note: We recommend running this tutorial in a Colab notebook, with no setup required! Just click \"Run in Google Colab\".\n", "\n", "
\n",
"![]() | \n",
"\n",
"![]() | \n",
"\n",
"![]() | \n",
"\n",
"![]() | \n",
"
pickup_community_area | fare | trip_start_month |
trip_start_hour | trip_start_day | trip_start_timestamp |
pickup_latitude | pickup_longitude | dropoff_latitude |
dropoff_longitude | trip_miles | pickup_census_tract |
dropoff_census_tract | payment_type | company |
trip_seconds | dropoff_community_area | tips |
.execution_id | 1 | ||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" CsvExampleGen at 0x7fe8880779d0
| ||||||||||||||||||||||||||||||||||||||||||||
.component.inputs | {} | ||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
.execution_id | 2 | ||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" StatisticsGen at 0x7fe85fada580
| ||||||||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
.execution_id | 3 | ||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" SchemaGen at 0x7fe85fadaf40
| ||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
\n", " | Type | \n", "Presence | \n", "Valency | \n", "Domain | \n", "
---|---|---|---|---|
Feature name | \n", "\n", " | \n", " | \n", " | \n", " |
'company' | \n", "STRING | \n", "required | \n", "\n", " | 'company' | \n", "
'dropoff_census_tract' | \n", "INT | \n", "required | \n", "\n", " | - | \n", "
'dropoff_community_area' | \n", "INT | \n", "required | \n", "\n", " | - | \n", "
'dropoff_latitude' | \n", "FLOAT | \n", "required | \n", "\n", " | - | \n", "
'dropoff_longitude' | \n", "FLOAT | \n", "required | \n", "\n", " | - | \n", "
'fare' | \n", "FLOAT | \n", "required | \n", "single | \n", "- | \n", "
'payment_type' | \n", "STRING | \n", "required | \n", "single | \n", "'payment_type' | \n", "
'pickup_census_tract' | \n", "INT | \n", "required | \n", "\n", " | - | \n", "
'pickup_community_area' | \n", "INT | \n", "required | \n", "\n", " | - | \n", "
'pickup_latitude' | \n", "FLOAT | \n", "required | \n", "\n", " | - | \n", "
'pickup_longitude' | \n", "FLOAT | \n", "required | \n", "\n", " | - | \n", "
'tips' | \n", "FLOAT | \n", "required | \n", "single | \n", "- | \n", "
'trip_miles' | \n", "FLOAT | \n", "required | \n", "single | \n", "- | \n", "
'trip_seconds' | \n", "INT | \n", "required | \n", "\n", " | - | \n", "
'trip_start_day' | \n", "INT | \n", "required | \n", "single | \n", "- | \n", "
'trip_start_hour' | \n", "INT | \n", "required | \n", "single | \n", "- | \n", "
'trip_start_month' | \n", "INT | \n", "required | \n", "single | \n", "- | \n", "
'trip_start_timestamp' | \n", "INT | \n", "required | \n", "single | \n", "- | \n", "
\n", " | Values | \n", "
---|---|
Domain | \n", "\n", " |
'company' | \n", "'0118 - 42111 Godfrey S.Awir', '1085 - 72312 N and W Cab Co', '2192 - 73487 Zeymane Corp', '2733 - 74600 Benny Jona', '3011 - 66308 JBL Cab Inc.', '3152 - 97284 Crystal Abernathy', '3201 - C&D Cab Co Inc', '3201 - CID Cab Co Inc', '3253 - 91138 Gaither Cab Co.', '3319 - CD Cab Co', '3385 - 23210 Eman Cab', '3385 - Eman Cab', '3623 - 72222 Arrington Enterprises', '3897 - 57856 Ilie Malec', '4053 - 40193 Adwar H. Nikola', '4197 - 41842 Royal Star', '4197 - Royal Star', '4615 - 83503 Tyrone Henderson', '4615 - Tyrone Henderson', '4623 - Jay Kim', '5006 - 39261 Salifu Bawa', '5074 - 54002 Ahzmi Inc', '5074 - Ahzmi Inc', '5129 - 87128', '5129 - 98755 Mengisti Taxi', '585 - 88805 Valley Cab Co', '5864 - Thomas Owusu', '5874 - 73628 Sergey Cab Corp.', '5874 - Sergey Cab Corp.', '5997 - 65283 AW Services Inc.', '6488 - 83287 Zuha Taxi', '6574 - Babylon Express Inc.', '6742 - 83735 Tasha ride inc', 'Blue Ribbon Taxi Association Inc.', 'C & D Cab Co Inc', 'Chicago Elite Cab Corp.', 'Chicago Elite Cab Corp. (Chicago Carriag', 'Chicago Medallion Leasing INC', 'Chicago Medallion Management', 'Choice Taxi Association', 'Dispatch Taxi Affiliation', 'KOAM Taxi Association', 'Northwest Management LLC', 'Taxi Affiliation Services', 'Top Cab Affiliation', '0694 - 59280 Chinesco Trans Inc', '2092 - 61288 Sbeih company', '2192 - Zeymane Corp', '2809 - 95474 C & D Cab Co Inc.', '2823 - 73307 Seung Lee', '3094 - 24059 G.L.B. Cab Co', '3897 - Ilie Malec', '4053 - Adwar H. Nikola', '5006 - Salifu Bawa', '5129 - Mengisti Taxi', '5724 - KYVI Cab Inc', '585 - Valley Cab Co', '5864 - 73614 Thomas Owusu', '5997 - AW Services Inc.', '6057 - 24657 Richard Addo', '6743 - Luhak Corp' | \n", "
'payment_type' | \n", "'Cash', 'Credit Card', 'Dispute', 'No Charge', 'Pcard', 'Unknown', 'Prcard' | \n", "
.execution_id | 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" ExampleValidator at 0x7fe85c14d070
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
.execution_id | 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" Transform at 0x7fe85c0ccb80
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
.execution_id | 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" Trainer at 0x7fe65840f7c0
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
.execution_id | 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" Evaluator at 0x7fe65848cc70
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|
.execution_id | 9 | ||||||||||||||||||||||||||||||||||||||||||||||
.component | \n",
"\n",
" Pusher at 0x7fe6583f8220
| ||||||||||||||||||||||||||||||||||||||||||||||
.component.inputs |
| ||||||||||||||||||||||||||||||||||||||||||||||
.component.outputs |
|