Features impacting individual predictions after training a classification model












1












$begingroup$


I know my question might look odd but I just wanted to get some insights. Every prediction model will give us predictions for validation data set and it also can give/rank features based on their weight on predictions. I am looking for one step after that. Lets say we are dealing with employee resignation and we know the most important features are pay, latest promotion, job satisfaction and external job opportunities around that employees residence. Now, is there any way that we can say which of these features is the most important feature for an individual prediction? May be for one employee, Job satisfaction is the reason behind the leave but based on our feature importance, we need to focus on pay first. I just wanted to know if there is anyway that we can do some post processing on each individual predictions?



Thanks










share|improve this question







New contributor




Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    1












    $begingroup$


    I know my question might look odd but I just wanted to get some insights. Every prediction model will give us predictions for validation data set and it also can give/rank features based on their weight on predictions. I am looking for one step after that. Lets say we are dealing with employee resignation and we know the most important features are pay, latest promotion, job satisfaction and external job opportunities around that employees residence. Now, is there any way that we can say which of these features is the most important feature for an individual prediction? May be for one employee, Job satisfaction is the reason behind the leave but based on our feature importance, we need to focus on pay first. I just wanted to know if there is anyway that we can do some post processing on each individual predictions?



    Thanks










    share|improve this question







    New contributor




    Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      1












      1








      1





      $begingroup$


      I know my question might look odd but I just wanted to get some insights. Every prediction model will give us predictions for validation data set and it also can give/rank features based on their weight on predictions. I am looking for one step after that. Lets say we are dealing with employee resignation and we know the most important features are pay, latest promotion, job satisfaction and external job opportunities around that employees residence. Now, is there any way that we can say which of these features is the most important feature for an individual prediction? May be for one employee, Job satisfaction is the reason behind the leave but based on our feature importance, we need to focus on pay first. I just wanted to know if there is anyway that we can do some post processing on each individual predictions?



      Thanks










      share|improve this question







      New contributor




      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I know my question might look odd but I just wanted to get some insights. Every prediction model will give us predictions for validation data set and it also can give/rank features based on their weight on predictions. I am looking for one step after that. Lets say we are dealing with employee resignation and we know the most important features are pay, latest promotion, job satisfaction and external job opportunities around that employees residence. Now, is there any way that we can say which of these features is the most important feature for an individual prediction? May be for one employee, Job satisfaction is the reason behind the leave but based on our feature importance, we need to focus on pay first. I just wanted to know if there is anyway that we can do some post processing on each individual predictions?



      Thanks







      classification feature-selection






      share|improve this question







      New contributor




      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      FatimaFatima

      61




      61




      New contributor




      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Fatima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          Depending on what model you are using, the way things are multiplied and added together at prediction time slightly varies, but in principal it's all the same. You train a model that tries to learn the relationship of the feature vectors you give it to the associated targets. At prediction time, the same mathematical operations are being applied to every input you are trying to make a prediction for. So, the weights you learned during the training phase represent the feature importance across the entire training set, in which you hope generalizes to unseen "test" data. If you suspect that there are other reasons behind why an employee decided to resign outside of what the model weights are telling you, this would indicate that your model does not have enough features to separate the two classes of "not resign" vs. "resign". Essentially, during testing time, the feature importance is static and the exact same across any input you give. If feature1 is the most important for input 1, its the most important for every input. This is what the model learned.






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
            $endgroup$
            – Fatima
            yesterday











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "557"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Fatima is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46036%2ffeatures-impacting-individual-predictions-after-training-a-classification-model%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          Depending on what model you are using, the way things are multiplied and added together at prediction time slightly varies, but in principal it's all the same. You train a model that tries to learn the relationship of the feature vectors you give it to the associated targets. At prediction time, the same mathematical operations are being applied to every input you are trying to make a prediction for. So, the weights you learned during the training phase represent the feature importance across the entire training set, in which you hope generalizes to unseen "test" data. If you suspect that there are other reasons behind why an employee decided to resign outside of what the model weights are telling you, this would indicate that your model does not have enough features to separate the two classes of "not resign" vs. "resign". Essentially, during testing time, the feature importance is static and the exact same across any input you give. If feature1 is the most important for input 1, its the most important for every input. This is what the model learned.






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
            $endgroup$
            – Fatima
            yesterday
















          0












          $begingroup$

          Depending on what model you are using, the way things are multiplied and added together at prediction time slightly varies, but in principal it's all the same. You train a model that tries to learn the relationship of the feature vectors you give it to the associated targets. At prediction time, the same mathematical operations are being applied to every input you are trying to make a prediction for. So, the weights you learned during the training phase represent the feature importance across the entire training set, in which you hope generalizes to unseen "test" data. If you suspect that there are other reasons behind why an employee decided to resign outside of what the model weights are telling you, this would indicate that your model does not have enough features to separate the two classes of "not resign" vs. "resign". Essentially, during testing time, the feature importance is static and the exact same across any input you give. If feature1 is the most important for input 1, its the most important for every input. This is what the model learned.






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
            $endgroup$
            – Fatima
            yesterday














          0












          0








          0





          $begingroup$

          Depending on what model you are using, the way things are multiplied and added together at prediction time slightly varies, but in principal it's all the same. You train a model that tries to learn the relationship of the feature vectors you give it to the associated targets. At prediction time, the same mathematical operations are being applied to every input you are trying to make a prediction for. So, the weights you learned during the training phase represent the feature importance across the entire training set, in which you hope generalizes to unseen "test" data. If you suspect that there are other reasons behind why an employee decided to resign outside of what the model weights are telling you, this would indicate that your model does not have enough features to separate the two classes of "not resign" vs. "resign". Essentially, during testing time, the feature importance is static and the exact same across any input you give. If feature1 is the most important for input 1, its the most important for every input. This is what the model learned.






          share|improve this answer









          $endgroup$



          Depending on what model you are using, the way things are multiplied and added together at prediction time slightly varies, but in principal it's all the same. You train a model that tries to learn the relationship of the feature vectors you give it to the associated targets. At prediction time, the same mathematical operations are being applied to every input you are trying to make a prediction for. So, the weights you learned during the training phase represent the feature importance across the entire training set, in which you hope generalizes to unseen "test" data. If you suspect that there are other reasons behind why an employee decided to resign outside of what the model weights are telling you, this would indicate that your model does not have enough features to separate the two classes of "not resign" vs. "resign". Essentially, during testing time, the feature importance is static and the exact same across any input you give. If feature1 is the most important for input 1, its the most important for every input. This is what the model learned.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          kylec123kylec123

          65




          65












          • $begingroup$
            Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
            $endgroup$
            – Fatima
            yesterday


















          • $begingroup$
            Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
            $endgroup$
            – Fatima
            yesterday
















          $begingroup$
          Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
          $endgroup$
          – Fatima
          yesterday




          $begingroup$
          Thank you for the explanation. That was my understanding so far and wanted to make sure that is all we can use.
          $endgroup$
          – Fatima
          yesterday










          Fatima is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Fatima is a new contributor. Be nice, and check out our Code of Conduct.













          Fatima is a new contributor. Be nice, and check out our Code of Conduct.












          Fatima is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46036%2ffeatures-impacting-individual-predictions-after-training-a-classification-model%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to label and detect the document text images

          Vallis Paradisi

          Tabula Rosettana