Predict Visitor Purchases with a Classification Model in BQML v1.5 Reviews
9670 reviews
Kesava Sai Krishna K. · Reviewed almost 2 years ago
Steven L. · Reviewed almost 2 years ago
Najib Nur R. · Reviewed almost 2 years ago
Tan J. · Reviewed almost 2 years ago
Mohamed a. · Reviewed almost 2 years ago
Z S. · Reviewed almost 2 years ago
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. · Reviewed almost 2 years ago
Daniel B. · Reviewed almost 2 years ago
Dao En L. · Reviewed almost 2 years ago
charlie w. · Reviewed almost 2 years ago
JiA L. · Reviewed almost 2 years ago
Wan Muhammad Syafiq W. · Reviewed almost 2 years ago
Sharon T. · Reviewed almost 2 years ago
Sian Khon T. · Reviewed almost 2 years ago
mei T. · Reviewed almost 2 years ago
Adib A. · Reviewed almost 2 years ago
Xin Yan L. · Reviewed almost 2 years ago
Haarish N. · Reviewed almost 2 years ago
ANNA C. · Reviewed almost 2 years ago
Did a similar lab
Dhaval V. · Reviewed almost 2 years ago
KAI YAU T. · Reviewed almost 2 years ago
Easy to Follow!
SIA C. · Reviewed almost 2 years ago
WEE Y. · Reviewed almost 2 years ago
YEW Y. · Reviewed almost 2 years ago
ANNA C. · Reviewed almost 2 years ago
We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.