Predict Visitor Purchases with a Classification Model in BQML v1.5 Ulasan
9671 ulasan
Martina P. · Diulas hampir 2 tahun lalu
Kesava Sai Krishna K. · Diulas hampir 2 tahun lalu
Steven L. · Diulas hampir 2 tahun lalu
Najib Nur R. · Diulas hampir 2 tahun lalu
Tan J. · Diulas hampir 2 tahun lalu
Mohamed a. · Diulas hampir 2 tahun lalu
Z S. · Diulas hampir 2 tahun lalu
Task 8 No.2 the given SQL is cutoff lol. Here's a complete one in case anyone needs #standardSQL SELECT roc_auc, CASE WHEN roc_auc > .9 THEN 'good' WHEN roc_auc > .8 THEN 'fair' WHEN roc_auc > .7 THEN 'decent' WHEN roc_auc > .6 THEN 'not great' ELSE 'poor' END AS model_quality FROM ML.EVALUATE(MODEL ecommerce.classification_model_2, ( WITH all_visitor_stats AS ( SELECT fullvisitorid, IF(COUNTIF(totals.transactions > 0 AND totals.newVisits IS NULL) > 0, 1, 0) AS will_buy_on_return_visit FROM `data-to-insights.ecommerce.web_analytics` GROUP BY fullvisitorid ) # add in new features SELECT * EXCEPT(unique_session_id) FROM ( SELECT CONCAT(fullvisitorid, CAST(visitId AS STRING)) AS unique_session_id, # labels will_buy_on_return_visit, MAX(CAST(h.eCommerceAction.action_type AS INT64)) AS latest_ecommerce_progress, # behavior on the site IFNULL(totals.bounces, 0) AS bounces, IFNULL(totals.timeOnSite, 0) AS time_on_site, IFNULL(totals.pageviews, 0) AS pageviews, # where the visitor came from trafficSource.source, trafficSource.medium, channelGrouping, # mobile or desktop device.deviceCategory, # geographic IFNULL(geoNetwork.country, "") AS country FROM `data-to-insights.ecommerce.web_analytics`, UNNEST(hits) AS h JOIN all_visitor_stats USING(fullvisitorid) WHERE 1=1 # only predict for new visits AND totals.newVisits = 1 AND date BETWEEN '20170501' AND '20170630' # eval 2 months GROUP BY unique_session_id, will_buy_on_return_visit, bounces, time_on_site, totals.pageviews, trafficSource.source, trafficSource.medium, channelGrouping, device.deviceCategory, country ) ));
Preston L. · Diulas hampir 2 tahun lalu
Daniel B. · Diulas hampir 2 tahun lalu
Dao En L. · Diulas hampir 2 tahun lalu
charlie w. · Diulas hampir 2 tahun lalu
JiA L. · Diulas hampir 2 tahun lalu
Wan Muhammad Syafiq W. · Diulas hampir 2 tahun lalu
Sharon T. · Diulas hampir 2 tahun lalu
Sian Khon T. · Diulas hampir 2 tahun lalu
mei T. · Diulas hampir 2 tahun lalu
Adib A. · Diulas hampir 2 tahun lalu
Xin Yan L. · Diulas hampir 2 tahun lalu
Haarish N. · Diulas hampir 2 tahun lalu
ANNA C. · Diulas hampir 2 tahun lalu
Did a similar lab
Dhaval V. · Diulas hampir 2 tahun lalu
KAI YAU T. · Diulas hampir 2 tahun lalu
Easy to Follow!
SIA C. · Diulas hampir 2 tahun lalu
WEE Y. · Diulas hampir 2 tahun lalu
YEW Y. · Diulas hampir 2 tahun lalu
Kami tidak dapat memastikan bahwa ulasan yang dipublikasikan berasal dari konsumen yang telah membeli atau menggunakan produk terkait. Ulasan tidak diverifikasi oleh Google.