[scikit-learn] Mahalanobis distance metric in OPTICS

Adrin adrin.jalali at gmail.com
Fri May 31 12:54:05 EDT 2019

Mahalanobis is always tricky, the covariance is between the features, not
the samples. This works:


Not sure why it wouldn't work when you pass V, as it suggests as an

On Fri, May 31, 2019 at 12:16 PM Omkar Kumbhar <omkar.kumbhar at innoplexus.com>

> Hello,
> I was having issues while fitting OPTICS using Mahalanobis metric. I tried
> many things and had a hard time fitting it to my data distribution.
> I have replicated the issue in the ipython notebook below. You could also
> take a look at the html version of the notebook to look at the issues. Can
> you guide me on how to resolve this bug?
> PFA,
> ipython notebook to replicate the issue
> html of ipynb to look at stack traces.
> Thanks & Regards,
> Omkar Kumbhar
> Associate Data Scientist
> Innoplexus Consulting Services Pvt. Ltd.
> www.innoplexus.com
> Mob : +91- 9579464473
> Landline: +91-20-66527300
> The Intelligence MachineTM that is disrupting the traditional data and
> analytics services model
> © 2011-19 Innoplexus Consulting Services Pvt. Ltd.
> Unless otherwise explicitly stated, all rights including those in
> copyright in the content of this e-mail are owned by Innoplexus Consulting
> Services Pvt Ltd. and all related legal entities. The contents of this
> e-mail shall not be copied, reproduced, or transmitted in any form without
> the written permission of Innoplexus Consulting Services Pvt Ltd or that of
> the copyright owner. The receipt of this mail is the acknowledgement of the
> receipt of contents; if the recipient is not the intended addressee then
> the recipient shall notify the sender immediately.
> The contents are provided for information only and no opinions expressed
> should be relied on without further consultation with Innoplexus Consulting
> Services Pvt Ltd. and all related legal entities. While all endeavors have
> been made to ensure accuracy, Innoplexus Consulting Services Pvt. Ltd.
> makes no warranty or representation to its accuracy, completeness or
> fairness and persons who rely on it do so entirely at their own risk. The
> information herein may be changed or withdrawn at any time without notice.
> Innoplexus Consulting Services Pvt. Ltd. will not be liable to any client
> or third party for the accuracy of the information supplied through this
> service.
> Innoplexus Consulting Services Pvt. Ltd. accepts no responsibility or
> liability for the contents of any other site, whether linked to this site
> or not, or any consequences from your acting upon the contents of another
> site.
> <https://www.innoplexus.com/news/bio-international-convention>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20190531/38cf0887/attachment.html>

More information about the scikit-learn mailing list