Created
October 11, 2018 20:40
-
-
Save davideanastasia/743ca597a3d72c1004ccf7b2e9d205c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE MODEL `kaggle_talkingdata_adtracking.talkingdata_logreg_sample_0003` | |
| OPTIONS ( | |
| model_type='logistic_reg', | |
| input_label_cols=['is_attributed'], | |
| data_split_method='seq', | |
| data_split_col='click_time' | |
| ) AS | |
| SELECT CAST(ip AS STRING) as ip, | |
| CAST(app AS STRING) as app, | |
| CAST(device AS STRING) as device, | |
| CAST(os AS STRING) as os, | |
| CAST(channel AS STRING) as channel, | |
| click_time, | |
| is_attributed | |
| FROM `kaggle_talkingdata_adtracking.dataset_train_sample`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment