Scikit-Learn Gaussian Mixture: How can log-probabilities be positive? [closed]












2














I am fitting a Gaussian Mixture model:
gm = GaussianMixture(n_components=K)
gm.fit(features)



When I do:



gm.score_samples(features)



All of the scores, which are supposed to be: "weighted log probabilities for each sample." are positive.

Are they actually log-probabilities?










share|cite|improve this question













closed as off-topic by Xi'an, kjetil b halvorsen, Peter Flom Dec 21 at 12:48


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Xi'an, kjetil b halvorsen, Peter Flom

If this question can be reworded to fit the rules in the help center, please edit the question.


















    2














    I am fitting a Gaussian Mixture model:
    gm = GaussianMixture(n_components=K)
    gm.fit(features)



    When I do:



    gm.score_samples(features)



    All of the scores, which are supposed to be: "weighted log probabilities for each sample." are positive.

    Are they actually log-probabilities?










    share|cite|improve this question













    closed as off-topic by Xi'an, kjetil b halvorsen, Peter Flom Dec 21 at 12:48


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Xi'an, kjetil b halvorsen, Peter Flom

    If this question can be reworded to fit the rules in the help center, please edit the question.
















      2












      2








      2


      0





      I am fitting a Gaussian Mixture model:
      gm = GaussianMixture(n_components=K)
      gm.fit(features)



      When I do:



      gm.score_samples(features)



      All of the scores, which are supposed to be: "weighted log probabilities for each sample." are positive.

      Are they actually log-probabilities?










      share|cite|improve this question













      I am fitting a Gaussian Mixture model:
      gm = GaussianMixture(n_components=K)
      gm.fit(features)



      When I do:



      gm.score_samples(features)



      All of the scores, which are supposed to be: "weighted log probabilities for each sample." are positive.

      Are they actually log-probabilities?







      probability clustering python scikit-learn gaussian-mixture






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 20 at 18:50









      Eduardo G

      364




      364




      closed as off-topic by Xi'an, kjetil b halvorsen, Peter Flom Dec 21 at 12:48


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Xi'an, kjetil b halvorsen, Peter Flom

      If this question can be reworded to fit the rules in the help center, please edit the question.




      closed as off-topic by Xi'an, kjetil b halvorsen, Peter Flom Dec 21 at 12:48


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Xi'an, kjetil b halvorsen, Peter Flom

      If this question can be reworded to fit the rules in the help center, please edit the question.






















          1 Answer
          1






          active

          oldest

          votes


















          5














          They supposedly are probability densities, not probabilities.



          A probability density can be larger than 1, hence the log can be positive.



          The documentation of sklearn should probably be fixed to reflect this.






          share|cite|improve this answer




























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            They supposedly are probability densities, not probabilities.



            A probability density can be larger than 1, hence the log can be positive.



            The documentation of sklearn should probably be fixed to reflect this.






            share|cite|improve this answer


























              5














              They supposedly are probability densities, not probabilities.



              A probability density can be larger than 1, hence the log can be positive.



              The documentation of sklearn should probably be fixed to reflect this.






              share|cite|improve this answer
























                5












                5








                5






                They supposedly are probability densities, not probabilities.



                A probability density can be larger than 1, hence the log can be positive.



                The documentation of sklearn should probably be fixed to reflect this.






                share|cite|improve this answer












                They supposedly are probability densities, not probabilities.



                A probability density can be larger than 1, hence the log can be positive.



                The documentation of sklearn should probably be fixed to reflect this.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Dec 20 at 22:05









                Anony-Mousse

                29.5k54178




                29.5k54178















                    Popular posts from this blog

                    Список кардиналов, возведённых папой римским Каликстом III

                    Deduzione

                    Mysql.sock missing - “Can't connect to local MySQL server through socket”