FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BuildingMachineLearningSystemsWithPython/ch05/data.py at master · luispedro/BuildingMachineLearningSystemsWithPython · GitHub
luispedro
/
BuildingMachineLearningSystemsWithPython
Public
Notifications
You must be signed in to change notification settings
Fork
1.4k
Star
2.1k
Code
Issues
1
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
BuildingMachineLearningSystemsWithPython
/
ch05
/
data.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 530 Bytes
Breadcrumbs
BuildingMachineLearningSystemsWithPython
/
ch05
/
data.py
Copy path
File metadata and controls
17 lines (13 loc) · 530 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This code is supporting material for the book
# Building Machine Learning Systems with Python
# by Willi Richert and Luis Pedro Coelho
# published by PACKT Publishing
#
# It is made available under the MIT License
import
os
DATA_DIR
=
"data"
# put your posts-2012.xml into this directory
CHART_DIR
=
"charts"
filtered
=
os
.
path
.
join
(
DATA_DIR
,
"filtered.tsv"
)
filtered_meta
=
os
.
path
.
join
(
DATA_DIR
,
"filtered-meta.json"
)
chosen
=
os
.
path
.
join
(
DATA_DIR
,
"chosen.tsv"
)
chosen_meta
=
os
.
path
.
join
(
DATA_DIR
,
"chosen-meta.json"
)
Back
|
FazBrowse Home
|
New Git URL