Commit Graph

56 Commits

Author SHA1 Message Date
Julien Jerphanion 0b2f4ead15
MAINT Create a private extension for sorting utilities (#22760) 2022-03-17 18:48:03 -04:00
Julien Jerphanion 1a7cdbf0c5
MAINT refactor heap routines into utils (#21987) 2021-12-21 13:37:11 +01:00
Julien Jerphanion 6b332d9969
MNT Move `DistanceMetric` under `metrics` (#21177) 2021-10-08 17:57:32 +02:00
Christian Lorentzen c0e5d1bc74
FEA add ReadonlyArrayWrapper (#20903)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2021-09-06 15:44:58 +02:00
Mathis Batoul 4b8cd88039
MAINT Improve source generation using `Tempita` (#20481)
Co-authored-by: Joan Massich <sik@visor.udg.edu>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-09 21:43:56 +02:00
Tom Dupré la Tour 81165cabad
MNT use `scipy.sparse.csgraph.shortest_path` in Isomap (#20531)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-03 09:16:00 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
jeremiedbb c2115b10eb BLD lazy import of tempita to avoid cython dependency (#15313) 2019-10-25 14:42:18 +02:00
jeremiedbb 85c4ac261a MNT New helper for effective number of OpenMP threads (#14196) 2019-10-17 08:38:14 -04:00
Nicolas Hug 5e7ff0d0cd MAINT Make utlis.fast_dict private (#15223) 2019-10-14 00:36:36 -04:00
Nicolas Hug 150e82b52b MNT Make utils.weight_vector and utils.seq_dataset private (#15225) 2019-10-13 14:36:57 +02:00
Roman Yurchak 58be9a671b MAINT Remove vendored C99 lgamma implementation (#14555)
* Remove vendored lgamma implementation

* Remove lgamma altogether
2019-08-07 11:23:39 +02:00
Joan Massich f02ef9f52f LogisticRegression convert to float64 (for SAG solver) (#13243)
* Remove unused code

* Squash all the PR 9040 commits

initial PR commit

seq_dataset.pyx generated from template

seq_dataset.pyx generated from template #2

rename variables

fused types consistency test for seq_dataset

a

sklearn/utils/tests/test_seq_dataset.py

new if statement

add doc

sklearn/utils/seq_dataset.pyx.tp

minor changes

minor changes

typo fix

check numeric accuracy only up 5th decimal

Address oliver's request for changing test name

add test for make_dataset and rename a variable in test_seq_dataset

* FIX tests

* TST more numerically stable test_sgd.test_tol_parameter

* Added benchmarks to compare SAGA 32b and 64b

* Fixing gael's comments

* fix

* solve some issues

* PEP8

* Address lesteve comments

* fix merging

* avoid using assert_equal

* use all_close

* use explicit ArrayDataset64 and CSRDataset64

* fix: remove unused import

* Use parametrized to cover ArrayDaset-CSRDataset-32-64 matrix

* for consistency use 32 first then 64 + add 64 suffix to variables

* it would be cool if this worked !!!

* more verbose version

* revert SGD changes as much as possible.

* Add solvers back to bench_saga

* make 64 explicit in the naming

* remove checking native python type + add comparison between 32 64

* Add whatsnew with everyone with commits

* simplify a bit the testing

* simplify the parametrize

* update whatsnew

* fix pep8
2019-02-27 11:14:29 +01:00
jeremiedbb 6649059d5f [MRG] MAINT: Continue moving from CBLAS to scipy cython blas (#13084) 2019-02-20 19:23:34 +01:00
jeremiedbb d0f63a760d [MRG] Use Scipy cython BLAS API instead of bundled CBLAS (#12732) 2019-02-01 17:39:04 +01:00
Andreas Mueller 0f94f2962b
MNT simple deprecations and removals for 0.21 (#12238)
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
2018-10-11 14:56:37 -04:00
Loïc Estève 6a2d8d5bbc [MRG+2] BUILD Rewrite setup.py files to handle cython dependencies (#7719)
* Rewriting of cythonization in setup.py

By using Cython.Build.cythonize and switching between .c and .pyx files
as appropriate cython dependencies are correctly taken into account.

* Use cythonize once on the root config rather than in each subpackage

* Fix for Windows

* Remove caching from Travis

Cython dependencies are taken care of by Cython.Build.cythonize and
based on file timestamps, so .C and .so files will always be rebuild
from scratch on each build in Travis.

* Specify .pyx in setup.files for cython generated extensions

More natural this way. Tweak the extensions to generate from .c and .cpp
files for a release.

* COSMIT Remove commented out code

* Check cython version is greater than 0.23

* COSMIT better names for functions

* flake8 fix (imported module not at top of file)

* Install cython 0.23 for Python 2.6

now that cython >= 0.23 requirement is enforced in setup.py

* Use module constant for minimum required cython version

* Fix Travis install.sh

No easy way to put comments inside multi-line command
2016-11-02 22:57:04 +11:00
Jake VanderPlas e743cf75f5 MAINT: re-organize setup.py & make sure all tests are discoverable by nose 2016-05-13 06:57:09 -07:00
Andreas Mueller f7d14b365d MISC rename random.pyx to _random.pyx 2014-07-14 20:47:17 +02:00
Manoj-Kumar-S bbb8f1d1bf Moved sparsefuncs to sparsefuncs_fast 2014-03-27 13:20:45 +05:30
Gael Varoquaux 1ada65fea2 Merge branch 'master' into hc_linkage
Conflicts:
	sklearn/cluster/tests/test_hierarchical.py
2014-02-04 22:04:48 +01:00
Lars Buitinck bb743ddb2a ENH speed up SVMlight loader using Cython's array support
Loading the binary covtype dataset from
http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html
now takes 1/3 less wall clock time, which includes disk I/O and
decompression (bzip2).

Got rid of ArrayBuilder in the process.
2014-01-05 22:10:02 +01:00
Nelle Varoquaux 15434800d7 Merge master in hc_linkage 2013-10-28 16:23:05 +01:00
Lars Buitinck b8e1a6c357 ENH SGD Cython improvements
* nogil declarations where possible (but no with nogil blocks, since the
  performance benefit of those is not clear)
* use BLAS where appropriate
* replaced DOUBLE by double, INTEGER and int32 by int/np.intc, since that's
  the type used by scipy.sparse
* explicit checks that dataset dims don't exceed INT_MAX
* replaced an np.all by an explicit loop (npymath library for C99 isfinite)
2013-09-07 18:24:36 +02:00
Gael Varoquaux d5ac03caa0 MISC: move fast_dict to utils 2013-08-25 11:33:40 +02:00
Vlad Niculae e488649af4 ENH Add fast and stable logistic sigmoid to utils and RBM 2013-07-24 17:27:22 +02:00
Robert Layton 4e1e1ab772 Now that the folder has more than just mst in it, rename to sparsetools, which should help with referencing it. 2013-07-22 10:27:26 +02:00
Robert Layton 3ebd9ee775 Missed a spot 2013-07-22 10:27:25 +02:00
Robert Layton 67cdef8078 Moved mst to a subfolder and added a README file 2013-06-04 13:57:15 +02:00
Robert Layton 4c4f1cffb2 Minimal spanning tree backported from scipy 0.13
No tests in this commit
2013-06-04 13:57:15 +02:00
Lars Buitinck 68d2388f24 COSMIT translate lgamma replacement to C and clean it up 2013-01-31 01:22:08 +01:00
Vlad Niculae 452ca22102 ENH: use lgamma function from John D. Cook
Conflicts:
	sklearn/metrics/cluster/expected_mutual_info_fast.c
	sklearn/utils/lgamma.cpp
	sklearn/utils/lgamma.pyx
	sklearn/utils/setup.py
2013-01-13 14:03:45 +00:00
Lars Buitinck 76c66a0dab BUG Cholesky delete routines wouldn't compile on Solaris
Fixed that and cleaned it up. Should solve #1510.
2013-01-03 15:03:26 +01:00
Andreas Mueller 966e10c252 COSMIT PEP8 2012-12-22 16:48:17 +01:00
Andreas Mueller 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
Arnaud Joly a6ed58dc4d ENH flatten random_projection module + add sklearn.utils.random 2012-12-21 14:48:00 +01:00
Andreas Mueller 82a762f69d COSMIT pep8 2012-08-10 11:06:42 +01:00
GaelVaroquaux 446611dbcf MISC: build_utils: module rather than a subpackages 2012-07-26 11:45:20 +02:00
David Cournapeau d8e30f1ca8 REF: hack to be able to share distutils utilities.
We took the ugly trick from NumPy to separate build vs normal use of
sklearn imports.
2012-07-25 11:35:40 +01:00
Andreas Mueller c1c734af47 ENH put atlas checking in one place and load from there. 2012-07-20 23:45:26 +01:00
Andreas Mueller d4dc61b709 FIX trying to fix long-standing linker issue 2012-07-16 21:31:23 +01:00
Gael Varoquaux b32180db46 BUILD: add libm onlyon posix systems 2012-05-06 15:32:59 +02:00
Claire Revillet 690aaf1d1f - fix missing links to the C math libray 2012-05-06 15:32:59 +02:00
Peter Prettenhofer 7fcb2dbb3e moved WeightVector und SequentialDataset into seperate modules. 2012-03-07 20:09:05 +01:00
Peter Prettenhofer 3ea19f0d82 renamed largescale -> large_scale 2012-03-06 08:10:51 +01:00
Peter Prettenhofer add24160c3 added largescale ext module to setup.py 2012-02-15 21:30:36 +01:00
GaelVaroquaux ec20311e06 ENH: get the murmurhash to build properly 2012-01-16 08:11:50 +01:00
Olivier Grisel 6f6697896b first stab at trying to wrap MurmurHash3 2012-01-16 01:40:47 +01:00
Jake Vanderplas 7f53024ae9 remove unused imports 2011-12-23 09:27:40 -08:00
Mathieu Blondel 64adbcaddd Implement mean_variance_axis0. 2011-12-19 16:28:21 +01:00