Commit Graph

91 Commits

Author SHA1 Message Date
Kyle Kastner b2d6a30aeb IncrementalPCA implementation 2014-09-22 13:12:29 -04:00
Stefan van der Walt f5300d1b5e ENH Speed up and simplify cartesian product 2014-09-04 15:27:25 +02:00
MechCoder 9e58bcdfad DOC: Added np.sqrt since default is 'squared=False' 2014-08-26 15:42:22 +02:00
Lars Buitinck 56057c9630 MAINT remove deprecated code 2014-07-23 16:19:40 +02:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
lesteve fa50e628dd Remove 'DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future' warnings 2014-07-18 15:16:56 +01:00
Lars Buitinck fb795ebef0 ENH factor out squared norm helper 2014-04-08 23:02:54 +02:00
Manoj-Kumar-S bbb8f1d1bf Moved sparsefuncs to sparsefuncs_fast 2014-03-27 13:20:45 +05:30
Lars Buitinck baae60b95d MAINT remove useless import 2014-03-02 23:44:10 +01:00
Lars Buitinck 23b3cc2eb5 MAINT drop support for SciPy < 0.9
TODO: get rid of solve_triangular. Just replacing it by scipy.linalg's
breaks OMP and least-angle regression.
2014-03-02 20:13:57 +01:00
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00
Lars Buitinck fd54575111 ENH re-instate extmath.logistic_sigmoid
For backward compat only, so immediately deprecated.
2014-02-23 17:47:03 +01:00
Lars Buitinck 0ba1e28cd5 ENH speed up RBM training with scipy.special.expit
SciPy 0.10 already has an implementation of the logistic function called
scipy.special.expit.

Using this makes RBM training 12% faster, as measured by observing the time
per iteration as reported by the plot_rbm_logistic_classification.py example,
disregarding the first iteration as an outlier (it's consistently faster than
the rest, not sure why). The speedup is in the expit function, not the
inplace operations; those are there to make benchmarking easier, but they
certainly won't hurt.
2014-02-23 17:46:53 +01:00
Joel Nothman dbc26ce996 COSMIT remove unused imports and variables 2014-02-03 19:43:56 +11:00
Lars Buitinck 5f3f794069 MAINT refactor fast_dot
* check for NumPy >= 1.7.2 at import time, instead of in every call;
* save a function call when newer NumPy is available;
* rewrote documentation;
* put the docstring on fast_dot instead of _fast_dot;
* remove spurious warnings for matrix-vector multiplications (some of these
  are suboptimal with older np.dot, but the good ones were triggering a
  warning as well).
2013-12-29 20:11:58 +01:00
Mathieu Blondel 112befd2bd Simplify fast_dot. 2013-11-10 20:28:15 +09:00
Mathieu Blondel 9162dd5018 More robust unit tests for fast_dot. 2013-11-09 18:21:50 +09:00
Mathieu Blondel c0e686b74a COSMIT: no need for parentheses. 2013-11-09 13:47:55 +09:00
Mathieu Blondel 8143e40656 BUG: ValueError was assigned as local variable! 2013-11-09 13:40:09 +09:00
Lars Buitinck 551b6c2f06 ENH honor Y_norm_squared when X=Y in euclidean_distances
Also a micro-optimization to row_norms.
2013-10-13 18:54:21 +02:00
Lars Buitinck 24af95a211 ENH refactor squared-norms computation to extmath
k-means can now use the memory-efficient dense implementation from
metrics.pairwise, while pairwise can use the fast sparse implementation
from k-means.
2013-10-12 20:27:51 +02:00
Lars Buitinck edf747e6a2 DOC docstring for extmath.norm 2013-10-12 20:17:33 +02:00
dengemann c1df89edf2 ... add the fix to import check 2013-10-08 23:01:48 +02:00
dengemann add591cbf7 FIX scipy API 2013-10-08 22:54:14 +02:00
Lars Buitinck ceffed1d6e MAINT remove useless deprecation in sklearn.utils
This module is off-limits to users anyway.
2013-09-04 18:43:56 +02:00
balu fcce3032c0 fix visual indentation 2013-08-31 12:27:16 +05:30
dengemann fbd6d9c8f6 ENH: update version checking 2013-08-25 12:17:33 +02:00
dengemann f91fba2f01 ENH: restrict fast_dot to np < 1.8 2013-08-25 11:16:22 +02:00
dengemann 1322da977c ENH/FIX: address @ogrisel comments 2013-08-25 11:16:21 +02:00
dengemann f36cba5b05 FIX: superfluous check 2013-08-25 11:16:21 +02:00
dengemann b86f3d5208 ENH: add new Warning class, improve tests, update docs 2013-08-25 11:16:21 +02:00
dengemann dcd6292095 ENH: cover another cornercase + fix messages 2013-08-25 11:16:21 +02:00
dengemann dbc751fd50 ENH: add fast_dot shape check 2013-08-25 11:16:21 +02:00
dengemann 69fc2970e7 FIX: remove spurious test 2013-08-25 11:16:21 +02:00
dengemann bc15f3019d CLEANUP 2013-08-25 11:16:21 +02:00
dengemann 5a3a432a79 ENH: return np.dot if ndim does not match 2013-08-25 11:16:21 +02:00
dengemann e98d1ccf42 FIX: workaround for missing BLAS 2013-08-25 11:16:21 +02:00
dengemann 19e0401c12 employ DataConversionWarning 2013-08-25 11:16:20 +02:00
dengemann 2240e44f31 ENH: add fast_dot function 2013-08-25 11:16:20 +02:00
Lars Buitinck 74ec752e3c ENH speed up logistic_sigmoid (using less code)
Timings, before:

>>> x = np.linspace(-1000, 1000, 10000)
>>> %timeit logistic_sigmoid(x)
1000 loops, best of 3: 570 us per loop

After:

>>> %timeit logistic_sigmoid(x)
1000 loops, best of 3: 286 us per loop

For comparison:

>>> %timeit np.tanh(x)
10000 loops, best of 3: 117 us per loop
>>> %timeit .5 * (1 + np.tanh(x/2.))
1000 loops, best of 3: 301 us per loop

TODO: optimize log_logistic_sigmoid.
2013-07-28 16:44:13 +02:00
Kemal Eren 395b231774 moved and renamed _make_nonnegative() and _safe_min() 2013-07-25 19:19:19 +02:00
syhw ac1e1a9c87 squeezing logistic_sigmoid result only on 1D arrays 2013-07-24 17:27:23 +02:00
Vlad Niculae e488649af4 ENH Add fast and stable logistic sigmoid to utils and RBM 2013-07-24 17:27:22 +02:00
Lars Buitinck 77695ee27a COSMIT pep8 2013-07-11 11:50:23 +02:00
Lars Buitinck 34815a35c8 COSMIT omit unused parameter/return value in svd_flip 2013-06-12 13:39:39 +02:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Lars Buitinck 541987802f P3K range vs. xrange 2013-02-14 02:05:35 +01:00
Vlad Niculae 4040d42830 Make randomized_svd flipped by default 2012-12-24 15:03:49 +01:00
Vlad Niculae 0755f156f8 Add sign flip as flag in randomized_svd 2012-12-24 15:03:49 +01:00
Vlad Niculae cf5d34e776 Make sign flip in place 2012-12-24 15:02:24 +01:00