LDA as a dimensionality reducer [on hold]












0












$begingroup$


I know how to use LDA as a classifier.
But how to use Linear Discriminant Analysis as a dimensionality reducer to reduce the number of features and apply logistic regression on top of it.
I am using R language.










share|improve this question









New contributor




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







$endgroup$



put on hold as unclear what you're asking by Ethan, oW_, Mark.F, Sean Owen yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • $begingroup$
    Please provide more context about the problem . btw the wording makes it sound like a homework assignment: in particular the somewhat "random" toss-in of "applying logistic regression" without explaining why that were chosen
    $endgroup$
    – javadba
    2 days ago












  • $begingroup$
    Please consider editing your question. In its' current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago










  • $begingroup$
    I am trying to apply feature selection and go with logistic regression,instead of going blindly with random forest. My independent features being continuous and dependent categorical variable I am going with Linear Discriminant Analysis for feature selection, prior to applying logistic regression.
    $endgroup$
    – s.saptha maaleekaa
    yesterday


















0












$begingroup$


I know how to use LDA as a classifier.
But how to use Linear Discriminant Analysis as a dimensionality reducer to reduce the number of features and apply logistic regression on top of it.
I am using R language.










share|improve this question









New contributor




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







$endgroup$



put on hold as unclear what you're asking by Ethan, oW_, Mark.F, Sean Owen yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • $begingroup$
    Please provide more context about the problem . btw the wording makes it sound like a homework assignment: in particular the somewhat "random" toss-in of "applying logistic regression" without explaining why that were chosen
    $endgroup$
    – javadba
    2 days ago












  • $begingroup$
    Please consider editing your question. In its' current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago










  • $begingroup$
    I am trying to apply feature selection and go with logistic regression,instead of going blindly with random forest. My independent features being continuous and dependent categorical variable I am going with Linear Discriminant Analysis for feature selection, prior to applying logistic regression.
    $endgroup$
    – s.saptha maaleekaa
    yesterday
















0












0








0





$begingroup$


I know how to use LDA as a classifier.
But how to use Linear Discriminant Analysis as a dimensionality reducer to reduce the number of features and apply logistic regression on top of it.
I am using R language.










share|improve this question









New contributor




s.saptha maaleekaa 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 how to use LDA as a classifier.
But how to use Linear Discriminant Analysis as a dimensionality reducer to reduce the number of features and apply logistic regression on top of it.
I am using R language.







r feature-selection lda






share|improve this question









New contributor




s.saptha maaleekaa 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




s.saptha maaleekaa 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








edited yesterday







s.saptha maaleekaa













New contributor




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









asked 2 days ago









s.saptha maaleekaas.saptha maaleekaa

32




32




New contributor




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





New contributor





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






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




put on hold as unclear what you're asking by Ethan, oW_, Mark.F, Sean Owen yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Ethan, oW_, Mark.F, Sean Owen yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • $begingroup$
    Please provide more context about the problem . btw the wording makes it sound like a homework assignment: in particular the somewhat "random" toss-in of "applying logistic regression" without explaining why that were chosen
    $endgroup$
    – javadba
    2 days ago












  • $begingroup$
    Please consider editing your question. In its' current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago










  • $begingroup$
    I am trying to apply feature selection and go with logistic regression,instead of going blindly with random forest. My independent features being continuous and dependent categorical variable I am going with Linear Discriminant Analysis for feature selection, prior to applying logistic regression.
    $endgroup$
    – s.saptha maaleekaa
    yesterday




















  • $begingroup$
    Please provide more context about the problem . btw the wording makes it sound like a homework assignment: in particular the somewhat "random" toss-in of "applying logistic regression" without explaining why that were chosen
    $endgroup$
    – javadba
    2 days ago












  • $begingroup$
    Please consider editing your question. In its' current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago










  • $begingroup$
    I am trying to apply feature selection and go with logistic regression,instead of going blindly with random forest. My independent features being continuous and dependent categorical variable I am going with Linear Discriminant Analysis for feature selection, prior to applying logistic regression.
    $endgroup$
    – s.saptha maaleekaa
    yesterday


















$begingroup$
Please provide more context about the problem . btw the wording makes it sound like a homework assignment: in particular the somewhat "random" toss-in of "applying logistic regression" without explaining why that were chosen
$endgroup$
– javadba
2 days ago






$begingroup$
Please provide more context about the problem . btw the wording makes it sound like a homework assignment: in particular the somewhat "random" toss-in of "applying logistic regression" without explaining why that were chosen
$endgroup$
– javadba
2 days ago














$begingroup$
Please consider editing your question. In its' current form it is at risk of being closed.
$endgroup$
– Ethan
2 days ago




$begingroup$
Please consider editing your question. In its' current form it is at risk of being closed.
$endgroup$
– Ethan
2 days ago












$begingroup$
I am trying to apply feature selection and go with logistic regression,instead of going blindly with random forest. My independent features being continuous and dependent categorical variable I am going with Linear Discriminant Analysis for feature selection, prior to applying logistic regression.
$endgroup$
– s.saptha maaleekaa
yesterday






$begingroup$
I am trying to apply feature selection and go with logistic regression,instead of going blindly with random forest. My independent features being continuous and dependent categorical variable I am going with Linear Discriminant Analysis for feature selection, prior to applying logistic regression.
$endgroup$
– s.saptha maaleekaa
yesterday












1 Answer
1






active

oldest

votes


















0












$begingroup$

We can do LDA via the lda function from the MASS package. The reduced dimension data can be computed as follows:



# Model Discriminant Analysis
library( MASS )
model = lda( class ~ ., data = X_train )
# Ploting LDA Model
projected_data = as.matrix( X_train[, 1:18] ) %*% model$scaling


You can then feed the projected_data into another supervised learning method.



Credit: The code is obtained from here.






share|improve this answer











$endgroup$




















    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    We can do LDA via the lda function from the MASS package. The reduced dimension data can be computed as follows:



    # Model Discriminant Analysis
    library( MASS )
    model = lda( class ~ ., data = X_train )
    # Ploting LDA Model
    projected_data = as.matrix( X_train[, 1:18] ) %*% model$scaling


    You can then feed the projected_data into another supervised learning method.



    Credit: The code is obtained from here.






    share|improve this answer











    $endgroup$


















      0












      $begingroup$

      We can do LDA via the lda function from the MASS package. The reduced dimension data can be computed as follows:



      # Model Discriminant Analysis
      library( MASS )
      model = lda( class ~ ., data = X_train )
      # Ploting LDA Model
      projected_data = as.matrix( X_train[, 1:18] ) %*% model$scaling


      You can then feed the projected_data into another supervised learning method.



      Credit: The code is obtained from here.






      share|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        We can do LDA via the lda function from the MASS package. The reduced dimension data can be computed as follows:



        # Model Discriminant Analysis
        library( MASS )
        model = lda( class ~ ., data = X_train )
        # Ploting LDA Model
        projected_data = as.matrix( X_train[, 1:18] ) %*% model$scaling


        You can then feed the projected_data into another supervised learning method.



        Credit: The code is obtained from here.






        share|improve this answer











        $endgroup$



        We can do LDA via the lda function from the MASS package. The reduced dimension data can be computed as follows:



        # Model Discriminant Analysis
        library( MASS )
        model = lda( class ~ ., data = X_train )
        # Ploting LDA Model
        projected_data = as.matrix( X_train[, 1:18] ) %*% model$scaling


        You can then feed the projected_data into another supervised learning method.



        Credit: The code is obtained from here.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        Siong Thye GohSiong Thye Goh

        1,212418




        1,212418















            Popular posts from this blog

            How to label and detect the document text images

            Vallis Paradisi

            Tabula Rosettana