Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
gm_strategy_cvr
Commits
75dcbb86
Commit
75dcbb86
authored
Jul 21, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update field
parent
055f2a56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.py
src/main.py
+4
-4
No files found.
src/main.py
View file @
75dcbb86
...
@@ -20,20 +20,20 @@ def main():
...
@@ -20,20 +20,20 @@ def main():
time_begin
=
time
.
time
()
time_begin
=
time
.
time
()
# df = get_device_df_from_redis()
# df = get_device_df_from_redis()
df2
=
get_diary_df_from_redis
()
df2
=
get_diary_df_from_redis
()
print
(
df2
.
sample
(
1
))
#
print(df2.sample(1))
# print(df.size)
# print(df.size)
# print(df2.size)
# print(df2.size)
# a = device_feature_engineering(df)
# a = device_feature_engineering(df)
# print(a.size)
# print(a.size)
b
=
diary_feature_engineering
(
df2
,
from_redis
=
True
)
b
=
diary_feature_engineering
(
df2
,
from_redis
=
True
)
print
(
b
.
sample
(
1
))
print
(
b
.
sample
(
1
0
))
device_df
,
diary_df
,
click_df
,
conversion_df
=
read_csv_data
(
Path
(
"~/data/cvr_data/"
))
device_df
,
diary_df
,
click_df
,
conversion_df
=
read_csv_data
(
Path
(
"~/data/cvr_data/"
))
print
(
diary_df
.
sample
(
1
))
#
print(diary_df.sample(1))
# device_df = device_feature_engineering(device_df)
# device_df = device_feature_engineering(device_df)
diary_df
=
diary_feature_engineering
(
diary_df
)
diary_df
=
diary_feature_engineering
(
diary_df
)
print
(
diary_df
.
sample
(
1
))
#
print(diary_df.sample(1))
# cc_df = click_feature_engineering(click_df, conversion_df)
# cc_df = click_feature_engineering(click_df, conversion_df)
# df = join_features(device_df, diary_df, cc_df)
# df = join_features(device_df, diary_df, cc_df)
...
...
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