Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么是取得1,2,3,5,7,9,14天内的累计数据?而不是第1,2,3,5,7,9,14天的单独一天的数据 #3

Open
Tongzhenguo opened this issue Apr 23, 2017 · 2 comments

Comments

@Tongzhenguo
Copy link

为什么是取得1,2,3,5,7,9,14天内的累计数据?而不是第1,2,3,5,7,9,14天的单独一天的数据
代码片段大概是这个样子:
SELECT a.* FROM(
SELECT a.,DATEDIFF('2015/12/14',DATE)AS days FROM(
SELECT a.
,FLOOR((DATEDIFF('2015/12/28',DATE)-1)/14) AS watch FROM(
SELECT * FROM item_feature )a)a WHERE watch=1)a WHERE days<=3

@wepe
Copy link
Owner

wepe commented Apr 23, 2017

累计的分层特征更有判别性啊,取单独第i天的特征也不是不可以,效果可能差些,最直接的就是拿数据验证一下

@Tongzhenguo
Copy link
Author

恩恩,明白了;多谢大神指教

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants