{"id":890,"date":"2021-04-06T09:14:31","date_gmt":"2021-04-06T09:14:31","guid":{"rendered":"http:\/\/puneetkhosla.com\/?p=890"},"modified":"2021-04-14T05:12:54","modified_gmt":"2021-04-14T05:12:54","slug":"einstein-prediction-builder-improving-predictions-through-choice-of-fields","status":"publish","type":"post","link":"https:\/\/puneetkhosla.com\/?p=890","title":{"rendered":"Einstein Prediction Builder : Improving Predictions through choice of fields"},"content":{"rendered":"\n<p>In my last blog on Einstein Prediction Builder, we created a new numeric prediction. Link to last blog &#8211; <a href=\"https:\/\/puneetkhosla.com\/?p=845\">Build Numeric Predictions with Einstein Prediction Builder<\/a><\/p>\n\n\n\n<p>We saw that we got a &#8220;<strong><span class=\"has-inline-color has-bright-blue-color\">Good<\/span><\/strong>&#8221; prediction score of 44. But is our score good enough to to get quality predictions?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/12\/EPB27-1024x457.png\" alt=\"\" class=\"wp-image-857\" width=\"600\" height=\"260\"\/><\/figure>\n\n\n\n<p>It is really important to understand that even if a score is good, there are chances that our predictions might not predict what we want to see.<\/p>\n\n\n\n<p>To ensure quality, we need to do 2 level of checks :-<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The fields we are using.<\/li><li>The data in our example set.<\/li><\/ol>\n\n\n\n<p>In this Blog, we will cover the improvement we gain from changing the fields.<\/p>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-blue-color\">STEP 1 : <\/span><\/strong>When we choose the fields, we have to first eliminate &#8220;<strong><span class=\"has-inline-color has-bright-blue-color\">Hindsight Bias<\/span><\/strong>&#8220;. These are fields where outcome occurs post our use case eg: In our scenario, we are checking the probability of case escalation, but have included &#8220;Escalated&#8221; field in our prediction set. This means when the field is true, the case is escalated. So if we are predicting chances of escalations, then we can&#8217;t have a field in prediction that tells us whether escalation has happened already. Thus it is better to remove this field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB32.png\" alt=\"\" class=\"wp-image-891\" width=\"600\" height=\"345\"\/><\/figure>\n\n\n\n<p>Sometimes it is easy to locate as such fields as they are having High Impact on predictions. Removing such fields can sometimes drop the scores drastically. In my use case, the score dropped to 17.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB38-1024x261.png\" alt=\"\" class=\"wp-image-892\" width=\"600\" height=\"153\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB38-1024x261.png 1024w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB38-300x76.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB38-768x196.png 768w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB38-1200x306.png 1200w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB38.png 1405w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>Now we see Case Origin field having an impact and &#8220;LiveAgent&#8221; having most impact. However a quick check suggests that this field is not falling under the category. Thus we can eliminate the Hindsight Bias towards the prediction by carefully checking the report and fields being used.<\/p>\n\n\n\n<p>Having got a low score at the moment, shouldn&#8217;t be a concern as we have taken a step towards quality prediction.<\/p>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-blue-color\">STEP 2 : <\/span><\/strong>We should now review the fields where we have no \/ minimal data in example set. These fields can&#8217;t help much in quality predictions and should be removed from the field set. In my use case, I chose to eliminate the fields with no \/ minimal data.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB37.png\" alt=\"\" class=\"wp-image-894\" width=\"600\" height=\"397\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB37.png 948w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB37-300x198.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB37-768x508.png 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>Checking the score with the change resulted in increase of score to 24.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"355\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB40.png\" alt=\"\" class=\"wp-image-896\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB40.png 355w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB40-300x300.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB40-150x150.png 150w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/figure>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-blue-color\">STEP 3 : <\/span><\/strong>Remove the fields which have low impact \/ variance. This can be found when we open the Top Predictors report (link on Scorecard).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB39-1-1024x364.png\" alt=\"\" class=\"wp-image-897\" width=\"600\" height=\"213\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB39-1-1024x364.png 1024w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB39-1-300x107.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB39-1-768x273.png 768w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB39-1-1200x426.png 1200w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB39-1.png 1419w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>As we can see Account Name has no impact so removing the field can help in improving our results. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" width=\"349\" height=\"368\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB43-1.png\" alt=\"\" class=\"wp-image-902\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB43-1.png 349w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2021\/04\/EPB43-1-285x300.png 285w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/><\/figure>\n\n\n\n<p>We have now reached the Good range again with a score of 47.<\/p>\n\n\n\n<p>So we started with a score of 44 with low quality of predictions and ended with 47 but having a higher quality of prediction. The improvement we did is a step in the right direction to get quality predictions and would further help the score from Good to Great (which I will cover in the next blog).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last blog on Einstein Prediction Builder, we created a new numeric prediction. Link to last blog &#8211; Build Numeric Predictions with Einstein Prediction Builder We saw that we got a &#8220;Good&#8221; prediction score of 44. But is our score good enough to to get quality predictions? It is really important to understand that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[14,11,13,18,16],"class_list":["post-890","post","type-post","status-publish","format-standard","hentry","category-einstein","tag-ai","tag-einstein","tag-einstein-discovery","tag-einstein-prediction-builder","tag-salesforce"],"_links":{"self":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts\/890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=890"}],"version-history":[{"count":10,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts\/890\/revisions"}],"predecessor-version":[{"id":920,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts\/890\/revisions\/920"}],"wp:attachment":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}