Re: [scikit-learn] Validating L2 - Least Squares - sum of squares, During a Normalization Function

2017-10-08 Thread Joel Nothman
(normalize(X) * normalize(X)).sum(axis=1) works fine here. But I was unaware of these quirks in Python's implementation of pow: Numpy seems to be consistent in returning nan when a negative float is raised to a non-integer (or equivalent float) power. By only calculating integer powers of negativ

Re: [scikit-learn] Validating L2 - Least Squares - sum of squares, During a Normalization Function

2017-10-08 Thread Javier López
Why would the square of a real number ever be negative? I believe the "quirk" in python is just operator precedence, as the power gets evaluated before applying the unary "-" On Sun, Oct 8, 2017 at 11:34 AM Joel Nothman wrote: > (normalize(X) * normalize(X)).sum(axis=1) works fine here. > > But

Re: [scikit-learn] Validating L2 - Least Squares - sum of squares, During a Normalization Function

2017-10-08 Thread Joel Nothman
Ah of course. Thanks. ___ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn

Re: [scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-08 Thread Albert Thomas
Hi, As Joel said LOF is not designed to be applied on unseen data. Therefore there is no public predict. Albert On Sun 8 Oct 2017 at 06:17, Joel Nothman wrote: > actually I'm probably wrong there, but you may not be able to use accuracy > ___ > sciki