Skip to content

Commit 3141878

Browse files
lego0901tfx-copybara
authored andcommitted
no op
PiperOrigin-RevId: 654579538
1 parent 48531cd commit 3141878

File tree

11 files changed

+395
-441
lines changed

11 files changed

+395
-441
lines changed

tfx/components/testdata/module_file/trainer_module.py

+278-261
Large diffs are not rendered by default.

tfx/components/testdata/schema_gen/schema.pbtxt

+49-41
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@ feature {
77
min_count: 1
88
}
99
}
10-
feature {
11-
name: "payment_type"
12-
value_count {
13-
min: 1
14-
max: 1
15-
}
16-
type: BYTES
17-
domain: "payment_type"
18-
presence {
19-
min_fraction: 1.0
20-
min_count: 1
21-
}
22-
}
2310
feature {
2411
name: "dropoff_census_tract"
2512
type: INT
@@ -54,15 +41,30 @@ feature {
5441
}
5542
feature {
5643
name: "fare"
57-
value_count {
58-
min: 1
59-
max: 1
60-
}
6144
type: FLOAT
6245
presence {
6346
min_fraction: 1.0
6447
min_count: 1
6548
}
49+
shape {
50+
dim {
51+
size: 1
52+
}
53+
}
54+
}
55+
feature {
56+
name: "payment_type"
57+
type: BYTES
58+
domain: "payment_type"
59+
presence {
60+
min_fraction: 1.0
61+
min_count: 1
62+
}
63+
shape {
64+
dim {
65+
size: 1
66+
}
67+
}
6668
}
6769
feature {
6870
name: "pickup_census_tract"
@@ -98,27 +100,29 @@ feature {
98100
}
99101
feature {
100102
name: "tips"
101-
value_count {
102-
min: 1
103-
max: 1
104-
}
105103
type: FLOAT
106104
presence {
107105
min_fraction: 1.0
108106
min_count: 1
109107
}
108+
shape {
109+
dim {
110+
size: 1
111+
}
112+
}
110113
}
111114
feature {
112115
name: "trip_miles"
113-
value_count {
114-
min: 1
115-
max: 1
116-
}
117116
type: FLOAT
118117
presence {
119118
min_fraction: 1.0
120119
min_count: 1
121120
}
121+
shape {
122+
dim {
123+
size: 1
124+
}
125+
}
122126
}
123127
feature {
124128
name: "trip_seconds"
@@ -130,51 +134,55 @@ feature {
130134
}
131135
feature {
132136
name: "trip_start_day"
133-
value_count {
134-
min: 1
135-
max: 1
136-
}
137137
type: INT
138138
presence {
139139
min_fraction: 1.0
140140
min_count: 1
141141
}
142+
shape {
143+
dim {
144+
size: 1
145+
}
146+
}
142147
}
143148
feature {
144149
name: "trip_start_hour"
145-
value_count {
146-
min: 1
147-
max: 1
148-
}
149150
type: INT
150151
presence {
151152
min_fraction: 1.0
152153
min_count: 1
153154
}
155+
shape {
156+
dim {
157+
size: 1
158+
}
159+
}
154160
}
155161
feature {
156162
name: "trip_start_month"
157-
value_count {
158-
min: 1
159-
max: 1
160-
}
161163
type: INT
162164
presence {
163165
min_fraction: 1.0
164166
min_count: 1
165167
}
168+
shape {
169+
dim {
170+
size: 1
171+
}
172+
}
166173
}
167174
feature {
168175
name: "trip_start_timestamp"
169-
value_count {
170-
min: 1
171-
max: 1
172-
}
173176
type: INT
174177
presence {
175178
min_fraction: 1.0
176179
min_count: 1
177180
}
181+
shape {
182+
dim {
183+
size: 1
184+
}
185+
}
178186
}
179187
string_domain {
180188
name: "company"

tfx/components/testdata/transform/transform_graph/metadata/schema.pbtxt

+50-41
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@ feature {
77
min_count: 1
88
}
99
}
10-
feature {
11-
name: "payment_type"
12-
value_count {
13-
min: 1
14-
max: 1
15-
}
16-
type: BYTES
17-
domain: "payment_type"
18-
presence {
19-
min_fraction: 1.0
20-
min_count: 1
21-
}
22-
}
2310
feature {
2411
name: "dropoff_census_tract"
2512
type: INT
@@ -54,15 +41,30 @@ feature {
5441
}
5542
feature {
5643
name: "fare"
57-
value_count {
58-
min: 1
59-
max: 1
60-
}
6144
type: FLOAT
6245
presence {
6346
min_fraction: 1.0
6447
min_count: 1
6548
}
49+
shape {
50+
dim {
51+
size: 1
52+
}
53+
}
54+
}
55+
feature {
56+
name: "payment_type"
57+
type: BYTES
58+
domain: "payment_type"
59+
presence {
60+
min_fraction: 1.0
61+
min_count: 1
62+
}
63+
shape {
64+
dim {
65+
size: 1
66+
}
67+
}
6668
}
6769
feature {
6870
name: "pickup_census_tract"
@@ -98,27 +100,29 @@ feature {
98100
}
99101
feature {
100102
name: "tips"
101-
value_count {
102-
min: 1
103-
max: 1
104-
}
105103
type: FLOAT
106104
presence {
107105
min_fraction: 1.0
108106
min_count: 1
109107
}
108+
shape {
109+
dim {
110+
size: 1
111+
}
112+
}
110113
}
111114
feature {
112115
name: "trip_miles"
113-
value_count {
114-
min: 1
115-
max: 1
116-
}
117116
type: FLOAT
118117
presence {
119118
min_fraction: 1.0
120119
min_count: 1
121120
}
121+
shape {
122+
dim {
123+
size: 1
124+
}
125+
}
122126
}
123127
feature {
124128
name: "trip_seconds"
@@ -130,51 +134,55 @@ feature {
130134
}
131135
feature {
132136
name: "trip_start_day"
133-
value_count {
134-
min: 1
135-
max: 1
136-
}
137137
type: INT
138138
presence {
139139
min_fraction: 1.0
140140
min_count: 1
141141
}
142+
shape {
143+
dim {
144+
size: 1
145+
}
146+
}
142147
}
143148
feature {
144149
name: "trip_start_hour"
145-
value_count {
146-
min: 1
147-
max: 1
148-
}
149150
type: INT
150151
presence {
151152
min_fraction: 1.0
152153
min_count: 1
153154
}
155+
shape {
156+
dim {
157+
size: 1
158+
}
159+
}
154160
}
155161
feature {
156162
name: "trip_start_month"
157-
value_count {
158-
min: 1
159-
max: 1
160-
}
161163
type: INT
162164
presence {
163165
min_fraction: 1.0
164166
min_count: 1
165167
}
168+
shape {
169+
dim {
170+
size: 1
171+
}
172+
}
166173
}
167174
feature {
168175
name: "trip_start_timestamp"
169-
value_count {
170-
min: 1
171-
max: 1
172-
}
173176
type: INT
174177
presence {
175178
min_fraction: 1.0
176179
min_count: 1
177180
}
181+
shape {
182+
dim {
183+
size: 1
184+
}
185+
}
178186
}
179187
string_domain {
180188
name: "company"
@@ -250,3 +258,4 @@ string_domain {
250258
value: "Unknown"
251259
value: "Prcard"
252260
}
261+
# generate_legacy_feature_spec: false

tfx/components/testdata/transform/transform_graph/transform_fn/assets/vocab_compute_and_apply_vocabulary_1_vocabulary

+12-20
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,41 @@ Choice Taxi Association
55
Northwest Management LLC
66
KOAM Taxi Association
77
Top Cab Affiliation
8-
Chicago Elite Cab Corp. (Chicago Carriag
98
Chicago Medallion Leasing INC
9+
Chicago Elite Cab Corp. (Chicago Carriag
1010
Chicago Medallion Management
1111
Chicago Elite Cab Corp.
1212
5074 - 54002 Ahzmi Inc
13+
5006 - 39261 Salifu Bawa
1314
4197 - 41842 Royal Star
15+
3623 - 72222 Arrington Enterprises
1416
3253 - 91138 Gaither Cab Co.
15-
3201 - C&D Cab Co Inc
17+
3152 - 97284 Crystal Abernathy
1618
0118 - 42111 Godfrey S.Awir
1719
C & D Cab Co Inc
18-
3152 - 97284 Crystal Abernathy
20+
6488 - 83287 Zuha Taxi
21+
5129 - 98755 Mengisti Taxi
22+
3201 - C&D Cab Co Inc
1923
3011 - 66308 JBL Cab Inc.
2024
2733 - 74600 Benny Jona
21-
2192 - 73487 Zeymane Corp
2225
1085 - 72312 N and W Cab Co
2326
6742 - 83735 Tasha ride inc
2427
6574 - Babylon Express Inc.
25-
6488 - 83287 Zuha Taxi
26-
6057 - 24657 Richard Addo
27-
5997 - AW Services Inc.
2828
5997 - 65283 AW Services Inc.
2929
5874 - Sergey Cab Corp.
3030
5874 - 73628 Sergey Cab Corp.
3131
5864 - Thomas Owusu
32-
5864 - 73614 Thomas Owusu
33-
585 - Valley Cab Co
34-
5129 - Mengisti Taxi
35-
5129 - 98755 Mengisti Taxi
32+
585 - 88805 Valley Cab Co
3633
5129 - 87128
3734
5074 - Ahzmi Inc
38-
5006 - 39261 Salifu Bawa
3935
4623 - Jay Kim
4036
4615 - Tyrone Henderson
4137
4615 - 83503 Tyrone Henderson
42-
4053 - Adwar H. Nikola
43-
3897 - Ilie Malec
38+
4197 - Royal Star
39+
4053 - 40193 Adwar H. Nikola
4440
3897 - 57856 Ilie Malec
45-
3623 - 72222 Arrington Enterprises
4641
3385 - Eman Cab
4742
3385 - 23210 Eman Cab
43+
3319 - CD Cab Co
4844
3201 - CID Cab Co Inc
49-
2823 - 73307 Seung Lee
50-
2809 - 95474 C & D Cab Co Inc.
51-
2192 - Zeymane Corp
52-
2092 - 61288 Sbeih company
53-
0694 - 59280 Chinesco Trans Inc
45+
2192 - 73487 Zeymane Corp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2(��Ղů��� ����Ԁ��������濹����ߚ�7��谭����
Binary file not shown.

0 commit comments

Comments
 (0)