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
e82a863d
Commit
e82a863d
authored
Feb 23, 2021
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkl
parent
910da253
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
79 deletions
+12
-79
logs/PreProccessComponent.log
logs/PreProccessComponent.log
+0
-74
main.py
main.py
+12
-5
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
deleted
100644 → 0
View file @
910da253
2021-02-23 17:56:17,606 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 17:56:17,606 INFO PreProccessComponent Reading Json file
2021-02-23 17:56:17,622 INFO PreProccessComponent Parsing the pickle file
2021-02-23 17:59:10,742 INFO PreProccessComponent Reading Json file
2021-02-23 17:59:10,760 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:01:29,652 INFO PreProccessComponent Reading Json file
2021-02-23 18:01:29,671 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:02:08,816 INFO PreProccessComponent Reading Json file
2021-02-23 18:02:08,827 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:02:40,875 INFO PreProccessComponent Reading Json file
2021-02-23 18:02:40,887 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:04:47,559 INFO PreProccessComponent Reading Json file
2021-02-23 18:04:47,570 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:06:03,437 INFO PreProccessComponent Reading Json file
2021-02-23 18:06:03,448 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:06:26,273 INFO PreProccessComponent Reading Json file
2021-02-23 18:06:26,282 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:06:49,400 INFO PreProccessComponent Reading Json file
2021-02-23 18:06:49,412 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:07:24,418 INFO PreProccessComponent Reading Json file
2021-02-23 18:07:24,430 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:08:25,242 INFO PreProccessComponent Reading Json file
2021-02-23 18:08:25,253 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:09:21,818 INFO PreProccessComponent Reading Json file
2021-02-23 18:09:21,830 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:12:27,419 INFO PreProccessComponent Reading Json file
2021-02-23 18:12:27,438 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:12:27,444 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 18:12:27,445 INFO PreProccessComponent Component executed Successfully
2021-02-23 18:13:15,958 INFO PreProccessComponent Reading Json file
2021-02-23 18:13:15,978 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:13:15,986 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 18:13:15,991 INFO PreProccessComponent Component executed Successfully
2021-02-23 18:13:32,970 INFO PreProccessComponent Reading Json file
2021-02-23 18:13:32,985 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:13:32,993 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 18:13:32,994 INFO PreProccessComponent Component executed Successfully
2021-02-23 18:14:52,633 INFO PreProccessComponent Reading Json file
2021-02-23 18:14:52,645 INFO PreProccessComponent Parsing the pickle file
2021-02-23 18:14:52,650 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 18:14:52,650 INFO PreProccessComponent Component executed Successfully
2021-02-23 19:02:28,341 INFO PreProccessComponent Reading Json file
2021-02-23 19:02:28,351 INFO PreProccessComponent Parsing the pickle file
2021-02-23 19:02:29,640 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 19:02:29,641 INFO PreProccessComponent Component executed Successfully
2021-02-23 19:03:02,447 INFO PreProccessComponent Reading Json file
2021-02-23 19:03:02,457 INFO PreProccessComponent Parsing the pickle file
2021-02-23 19:03:14,509 INFO PreProccessComponent Reading Json file
2021-02-23 19:03:14,519 INFO PreProccessComponent Parsing the pickle file
2021-02-23 19:03:15,704 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 19:03:15,705 INFO PreProccessComponent Component executed Successfully
2021-02-23 20:01:03,806 INFO PreProccessComponent Reading Json file
2021-02-23 20:01:03,816 INFO PreProccessComponent Parsing the pickle file
2021-02-23 20:01:10,052 INFO PreProccessComponent Reading Json file
2021-02-23 20:01:10,063 INFO PreProccessComponent Parsing the pickle file
2021-02-23 20:01:11,229 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 20:01:11,230 INFO PreProccessComponent Component executed Successfully
2021-02-23 20:01:18,361 INFO PreProccessComponent Reading Json file
2021-02-23 20:01:18,371 INFO PreProccessComponent Parsing the pickle file
2021-02-23 20:01:19,794 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 20:01:19,795 INFO PreProccessComponent Component executed Successfully
2021-02-23 20:01:31,699 INFO PreProccessComponent Reading Json file
2021-02-23 20:01:31,708 INFO PreProccessComponent Parsing the pickle file
2021-02-23 20:01:32,896 INFO PreProccessComponent Got the data writing it to pickle file (preprocessed_X.pkl)
2021-02-23 20:01:32,896 INFO PreProccessComponent Component executed Successfully
2021-02-23 20:04:25,902 INFO PreProccessComponent Reading Json file
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 @
e82a863d
...
...
@@ -13,13 +13,20 @@ class PreProcessComponent:
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
):
try
:
logger
.
info
(
"Parsing the pickle file at location "
+
file
+
" ......"
)
return
pickle
.
load
(
open
(
file
,
"rb"
))
except
:
logger
.
info
(
"Failed to read pickle file"
)
def
preprocess
(
self
,
forcast_json
,
standard_scalar_pkl_path
,
null_value_method
):
try
:
logger
.
info
(
"Reading Json file"
)
with
open
(
forcast_json
)
as
f
:
data
=
json
.
load
(
f
)
except
:
logger
.
info
(
"Failed reading Json File"
)
for
i
in
data
[
PreProcessConstants
.
DAYS_KEY
]:
self
.
date
.
append
(
i
[
PreProcessConstants
.
DATETIME_KEY
])
self
.
ds
.
append
(
int
(
i
[
PreProcessConstants
.
DATETIME_KEY
]
.
split
(
"-"
)[
1
]))
...
...
test/date_X.pkl
deleted
100644 → 0
View file @
910da253
File deleted
test/preprocessed_X.pkl
deleted
100644 → 0
View file @
910da253
File deleted
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