scikit-learn/sklearn/utils/tests
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
..
__init__.py Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
test_bench.py COSMIT pep8 2012-12-22 16:48:17 +01:00
test_class_weight.py FIX compute_class_weight edge case 2013-03-06 23:41:24 +01:00
test_extmath.py ENH speed up logistic_sigmoid (using less code) 2013-07-28 16:44:13 +02:00
test_fixes.py PY3 xrange, np.divide, string.uppsercase, None comparison 2013-06-30 14:37:06 +02:00
test_graph.py DOC: Replaced all BSD style licenses with "BSD 3 clause" 2013-04-30 08:34:46 +02:00
test_linear_assignment.py Remove print in Hungarian tests 2013-07-25 19:19:25 +02:00
test_multiclass.py FIX bug with indicator format 2013-07-08 13:49:25 +02:00
test_murmurhash.py DOC: Replaced all BSD style licenses with "BSD 3 clause" 2013-04-30 08:34:46 +02:00
test_random.py P3K range vs. xrange 2013-02-14 02:05:35 +01:00
test_shortest_path.py COSMIT pep8 2013-05-04 10:43:39 +02:00
test_sparsefuncs.py ENH cut MiniBatchKMeans memory usage in half for large n_clusters 2013-03-13 15:23:50 +01:00
test_testing.py COSMIT fixing some unused imports, adding stuff to __all__, and light pep8 (not all whitespace to make rebasing less painful) 2013-07-27 15:44:17 +02:00
test_utils.py use column_or_1d, move it to utils 2013-07-26 17:16:27 +02:00
test_validation.py COSMIT fixing some unused imports, adding stuff to __all__, and light pep8 (not all whitespace to make rebasing less painful) 2013-07-27 15:44:17 +02:00