Can you apply PCA to part of your dataset?One Hot encoding for large number of valuesBest ML technique to suggest predictor variablesPCA Reduction resulted in an elliptical formShould I apply PCA on the entire dataset or just the nominal values?Does it makes sense to combine PCA with an artificial neural network?Data scaling before PCA: how to deal with categorical values?How to use multiple encoders(one-hot and numerical) together for PCABasics: What is the correct sequence for preparing simple data for ML?PCA-like analysis for dataset that has both categorical and continuous variablesDealing with a dataset with a mix of continuous and categorical variables

Why does a 97 / 92 key piano exist by Bösendorfer?

Purpose of creating non root user

If the only attacker is removed from combat, is a creature still counted as having attacked this turn?

Confusion over Hunter with Crossbow Expert and Giant Killer

If Captain Marvel (MCU) were to have a child with a human male, would the child be human or Kree?

Why the "ls" command is showing the permissions of files in a FAT32 partition?

Should I warn a new PhD Student?

Asserting that Atheism and Theism are both faith based positions

Can I say "fingers" when referring to toes?

Cumulative Sum using Java 8 stream API

How to understand "he realized a split second too late was also a mistake"

Echo with obfuscation

Given this phrasing in the lease, when should I pay my rent?

SOQL query causes internal Salesforce error

Review your own paper in Mathematics

Determining multivariate least squares with constraint

How to preserve electronics (computers, iPads and phones) for hundreds of years

Personal or impersonal in a technical resume

Sigmoid with a slope but no asymptotes?

Quoting Keynes in a lecture

How to make money from a browser who sees 5 seconds into the future of any web page?

Typing CO_2 easily

Why is participating in the European Parliamentary elections used as a threat?

Is stochastic gradient descent pseudo-stochastic?



Can you apply PCA to part of your dataset?


One Hot encoding for large number of valuesBest ML technique to suggest predictor variablesPCA Reduction resulted in an elliptical formShould I apply PCA on the entire dataset or just the nominal values?Does it makes sense to combine PCA with an artificial neural network?Data scaling before PCA: how to deal with categorical values?How to use multiple encoders(one-hot and numerical) together for PCABasics: What is the correct sequence for preparing simple data for ML?PCA-like analysis for dataset that has both categorical and continuous variablesDealing with a dataset with a mix of continuous and categorical variables













0












$begingroup$


I am working with kaggle dataset that has over 130 features composed of 116 categorical and 14 continuous features. I plotted the heatmap for the 14 continuous variables and found that most of them are weakly correlated with the response variable but highly correlated with each other. I am trying to apply PCA to this part of the data and glue them back together as columns with the categorical variables. Is it ok to do so? Or should I one-hot-encoding / label encoding the categorical variables and do pca to the entire dataset?










share|improve this question







New contributor




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







$endgroup$
















    0












    $begingroup$


    I am working with kaggle dataset that has over 130 features composed of 116 categorical and 14 continuous features. I plotted the heatmap for the 14 continuous variables and found that most of them are weakly correlated with the response variable but highly correlated with each other. I am trying to apply PCA to this part of the data and glue them back together as columns with the categorical variables. Is it ok to do so? Or should I one-hot-encoding / label encoding the categorical variables and do pca to the entire dataset?










    share|improve this question







    New contributor




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







    $endgroup$














      0












      0








      0





      $begingroup$


      I am working with kaggle dataset that has over 130 features composed of 116 categorical and 14 continuous features. I plotted the heatmap for the 14 continuous variables and found that most of them are weakly correlated with the response variable but highly correlated with each other. I am trying to apply PCA to this part of the data and glue them back together as columns with the categorical variables. Is it ok to do so? Or should I one-hot-encoding / label encoding the categorical variables and do pca to the entire dataset?










      share|improve this question







      New contributor




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







      $endgroup$




      I am working with kaggle dataset that has over 130 features composed of 116 categorical and 14 continuous features. I plotted the heatmap for the 14 continuous variables and found that most of them are weakly correlated with the response variable but highly correlated with each other. I am trying to apply PCA to this part of the data and glue them back together as columns with the categorical variables. Is it ok to do so? Or should I one-hot-encoding / label encoding the categorical variables and do pca to the entire dataset?







      dataset data data-cleaning pca dummy-variables






      share|improve this question







      New contributor




      JJtheNOOB 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




      JJtheNOOB 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




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









      asked 1 hour ago









      JJtheNOOBJJtheNOOB

      1




      1




      New contributor




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





      New contributor





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






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




















          0






          active

          oldest

          votes











          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
          );



          );






          JJtheNOOB 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%2f47693%2fcan-you-apply-pca-to-part-of-your-dataset%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








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









          draft saved

          draft discarded


















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












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











          JJtheNOOB 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%2f47693%2fcan-you-apply-pca-to-part-of-your-dataset%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