Menu

#1 Result does not match daisy()

1.0
closed
None
2017-04-07
2017-03-27
No

Thank you for the contribution. I have tried run the code and somehow the result does not match the result from daisy(). Any suggestion?

Discussion

  • Marcelo Beckmann

    Are you testing this in a public dataset which I can reproduce the problem?

     
    • Komson Chanprapan

      Yes. I just re-run the code on your provided gower_pdist.ipynb without changing anything and the result is slightly off.

      UPDATE

      This is the matrix I get after running the code several times using both Jupiter and Spider

      [[ 0. 0.34304207 0.65641855 0.33980583 0.16720604 0.51024811
      0.5377562 0.50809061]

      [ 0.34304207 0. 0.66612729 0.33656958 0.50916936 0.16720604
      0.38079827 0.66828479]

      [ 0.65641855 0.66612729 0. 0.66289105 0.65695793 0.66666667
      0.78532902 0.83117584]

      [ 0.33980583 0.33656958 0.66289105 0. 0.50593312 0.50377562
      0.71089536 0.33495146]

      [ 0.16720604 0.50916936 0.65695793 0.50593312 0. 0.34304207
      0.37162891 0.34088457]

      [ 0.51024811 0.16720604 0.66666667 0.50377562 0.34304207 0.
      0.21467098 0.5021575 ]

      [ 0.5377562 0.38079827 0.78532902 0.71089536 0.37162891 0.21467098

      1. 0.54584682]
        [ 0.50809061 0.66828479 0.83117584 0.33495146 0.34088457 0.5021575
        0.54584682 0. ]
        ]
       

      Last edit: Komson Chanprapan 2017-03-28
  • Marcelo Beckmann

    Hi,

    Thanks for these details. I've just ran this with python anaconda 3.5.1 and jupyter 4.1.0 and got same sresults from daisy (there are three values that may have a slight diff from daisy, but my math is good).

    Could you please send me the version and flavor of pyhton you are running on your side? This way I will be able to repoduce the problem.

    Regards,

     
    • Komson Chanprapan

      Hi,

      I use Anaconda 4.3.0 (64-bit) Python 2.7.13 on Spider 3.1.2 and on Jupiter 4.3.1 on both Windows and Mac and all them produce the same result.

      Regards,

       

      Last edit: Komson Chanprapan 2017-03-28
  • Marcelo Beckmann

    Hi, I'll setup the provided environment in a spare machine over the weekend and let you know

     
  • Marcelo Beckmann

    Hi, I could reproduce the problem with Python 2.7. I'm Working in a fix for this.

     

    Last edit: Marcelo Beckmann 2017-04-05
  • Marcelo Beckmann

    Hi, I just uploaded a version that works properly with both versions.

    Please let me know if you are happy to close this ticket.

    Regards,

    Marcelo Beckmann

     
    • Komson Chanprapan

      It works. One more tiny comment: in your Jupyter notebook, you skip step 3 in your heading. I am happy to close this ticket. Once again, thank you for your contribution.

       

      Last edit: Komson Chanprapan 2017-04-06
  • Marcelo Beckmann

    • assigned_to: Marcelo Beckmann
     
  • Marcelo Beckmann

    Thanks for this! I just updated the notebook with this tiny fix.

    Closing the ticket.

    Regards,

     
  • Marcelo Beckmann

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB