Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
preprocess-data
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
preprocess-data
Commits
910da253
Commit
910da253
authored
Feb 23, 2021
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkl
parent
1121848a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
4 deletions
+8
-4
logs/PreProccessComponent.log
logs/PreProccessComponent.log
+5
-0
main.py
main.py
+2
-3
scripts/common/__pycache__/config_parser.cpython-37.pyc
scripts/common/__pycache__/config_parser.cpython-37.pyc
+0
-0
scripts/common/config_parser.py
scripts/common/config_parser.py
+1
-1
test/date_X.pkl
test/date_X.pkl
+0
-0
test/preprocessed_X.pkl
test/preprocessed_X.pkl
+0
-0
No files found.
logs/PreProccessComponent.log
View file @
910da253
...
...
@@ -67,3 +67,8 @@
2021-02-23 20:04:25,913 INFO PreProccessComponent Parsing the pickle file
2021-02-23 20:04:27,159 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 20:04:27,162 INFO PreProccessComponent Component executed Successfully
2021-02-23 20:56:37,844 INFO PreProccessComponent {'shared_volume': 'test', 'json_path': 'E:\\welspun-defects\\preprocess_data-ilendev\\response.json', 'fillna_method': 'ffill', 'standard_scalar_path': ''}
2021-02-23 20:56:37,844 INFO PreProccessComponent Reading Json file
2021-02-23 20:56:37,855 INFO PreProccessComponent Parsing the pickle file at location E:\iLens-AI\Git\preprocess-data\StandardScaler.pkl ......
2021-02-23 20:56:39,016 INFO PreProccessComponent Got the data writing it to pickle files (preprocessed_X.pkl and date_X.pkl)
2021-02-23 20:56:39,018 INFO PreProccessComponent Component executed Successfully
main.py
View file @
910da253
...
...
@@ -10,8 +10,7 @@ from scripts.common.logsetup import logger
class
PreProcessComponent
:
def
__init__
(
self
):
self
.
ds
,
self
.
tempmax
,
self
.
tempmin
,
self
.
temp
,
self
.
humidity
,
self
.
precip
,
self
.
winddir
,
self
.
cloudcover
,
self
.
visibility
,
self
.
date
,
self
.
windspeed
=
(
[]
for
i
in
range
(
11
))
self
.
ds
,
self
.
tempmax
,
self
.
tempmin
,
self
.
temp
,
self
.
humidity
,
self
.
precip
,
self
.
winddir
,
self
.
cloudcover
,
self
.
visibility
,
self
.
date
,
self
.
windspeed
=
([]
for
i
in
range
(
11
))
def
read_pickle_file
(
self
,
file
):
logger
.
info
(
"Parsing the pickle file at location "
+
file
+
" ......"
)
...
...
@@ -63,7 +62,7 @@ if __name__ == '__main__':
if
PreProcessConstants
.
STANDARD_SCALAR_PATH
in
config
.
keys
():
standard_scalar_path
=
config
[
PreProcessConstants
.
STANDARD_SCALAR_PATH
]
if
len
(
standard_scalar_path
)
<
5
:
standard_scalar_path
=
"StandardScaler.pkl"
standard_scalar_path
=
os
.
path
.
join
(
os
.
getcwd
(),
'StandardScaler.pkl'
)
else
:
pass
else
:
...
...
scripts/common/__pycache__/config_parser.cpython-37.pyc
View file @
910da253
No preview for this file type
scripts/common/config_parser.py
View file @
910da253
...
...
@@ -36,7 +36,7 @@ config = {
"shared_volume"
:
os
.
environ
.
get
(
"shared_volume"
),
"json_path"
:
os
.
environ
.
get
(
"json_path"
),
"fillna_method"
:
os
.
environ
.
get
(
"fillna_method"
,
default
=
"ffill"
),
"standard_scalar_path"
:
os
.
environ
.
get
(
"standard_scalar_path"
,
default
=
PKL_path
),
"standard_scalar_path"
:
os
.
environ
.
get
(
"standard_scalar_path"
,
default
=
str
(
PKL_path
)
),
}
if
not
os
.
path
.
exists
(
config
[
'shared_volume'
]):
sys
.
stderr
.
write
(
"Shared path does not exist!"
)
...
...
test/date_X.pkl
0 → 100644
View file @
910da253
File added
test/preprocessed_X.pkl
0 → 100644
View file @
910da253
File added
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