Commit Graph

18 Commits

Author SHA1 Message Date
Thomas J. Fan 70eebb992e
MNT Use C++ stack instead of implementing our own in trees (#22328) 2022-02-25 17:54:54 +01:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Jérémie du Boisberranger 9e5819aa41 MNT Include all pxd files in the package (#15626)
* include all pxd files in package

* _libsvm _liblinear to pxi + add a test

* simplify stuff + use pathlib

* cln

* more cln
2019-11-26 17:37:26 +01:00
Roopam Sharma c6455fa77f Fix include .pxd definitions for sklearn.tree in wheels (#12381) 2018-10-31 09:39:23 +01: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
Jacob Schreiber 5978c0bbdf ENH split _tree.pyx into several files 2015-09-09 11:28:24 +02:00
Peter Prettenhofer 635505e544 moved data structures (Stack + Heap) to _utils
use impurity_improvement for choosing best split
2013-11-22 15:33:59 +01:00
Lars Buitinck 2c02ab0e9a FIX inline rand_r to fix build on Windows
XXX Why does building a DLL from two source files fail?
2013-07-26 17:55:14 +02:00
Gilles Louppe 12d9bf2fed FIX: remove -funroll-all-loops 2013-07-22 15:20:44 +02:00
Lars Buitinck 3b81aeec8b FIX move rand_r to tree module for now
Simple build and link without an intermediate Cython module.
2013-07-22 12:20:01 +02:00
Gilles Louppe eff6d641df WIP: setup.py 2013-07-22 12:19:59 +02:00
Gilles Louppe 77852879f2 WIP: unroll loops 2013-07-22 12:19:59 +02:00
Gilles Louppe a30fa20afe WIP: add -O3 to setup.py 2013-07-22 12:19:59 +02: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
Olivier Grisel c41fe29b5b cosmit: pep8 and trailing spaces 2011-10-05 10:16:51 +02:00
Gilles Louppe 2e4bb7ed4e ENH: Cleaned setup.py 2011-09-26 11:29:30 +02:00
Brian Holt b484aa4432 merged upstream-master into enh/tree 2011-09-03 13:04:27 +01:00