Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-027
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-27
2021-027
Commits
a75eb760
Commit
a75eb760
authored
Oct 24, 2021
by
Rifana F.N.F_IT16141902
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark input types
parent
5d3a122d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
neural_network.py
neural_network.py
+9
-0
No files found.
neural_network.py
View file @
a75eb760
...
...
@@ -23,3 +23,12 @@ def get_normalization_layer(name, dataset):
return
normalizer
categorical_cols
=
[
'Date'
,
'Time'
,
'Weather'
,
'Parking'
]
for
header
in
categorical_cols
:
categorical_col
=
tf
.
keras
.
Input
(
shape
=
(
1
,),
name
=
header
,
dtype
=
'string'
)
encoding_layer
=
get_category_encoding_layer
(
header
,
train_ds
,
dtype
=
'string'
,
max_tokens
=
5
)
encoded_categorical_col
=
encoding_layer
(
categorical_col
)
all_inputs
.
append
(
categorical_col
)
encoded_features
.
append
(
encoded_categorical_col
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment