Meekail Zain
9f96d42e39
ENH Replaced RandomState.rand with equivalent uniform ( #22327 )
2022-02-01 17:09:38 -05:00
Jérémie du Boisberranger
1f8825c8dd
MNT Centralize common cython compiler directives ( #21512 )
2021-11-03 13:26:23 +01:00
Juan Carlos Alfaro Jiménez
547ead6c0c
MNT More replacements of numpy aliases with built-in types ( #17707 )
...
* MNT More replacements of numpy aliases with built-in types [scipy-dev]
* MNT More (manual) replacements of numpy aliases
* MNT More (manual) replacements of numpy aliases
* FIX Minor change
* MNT Trigger build [scipy-dev]
* FIX Minor change
* MNT Trigger build [scipy-dev]
* FIX More deprecations of numpy aliases [scipy-dev]
* MNT Silent numpy aliases warnings [scipy-dev]
* FIX Fix silent deprecations
* Trigger build [scipy-dev]
* FIX Add scape characters [scipy-dev]
* FIX Remove package specification from silent
* Trigger build [scipy-dev]
* Revert
2020-06-26 12:45:03 +02:00
Nicolas Hug
4de404d46d
MNT Cleaning for fast partial dependence computation ( #13738 )
2019-05-03 09:00:25 +10:00
Aditya Vyas
301076e77b
MAINT Replace absolute imports with relative imports ( #13653 )
2019-04-17 12:45:14 -04:00
jeremiedbb
cad0fb434f
MNT Use a common language_level cython directive ( #13630 )
2019-04-13 07:30:18 +02:00
Samuel O. Ronsin
d0747ea2f2
FIX Take sample weights into account in partial dependence computation for gradient boosting ( #13193 )
...
* Replace n_node_samples by weighted_n_node_samples in partial dependence computation
* Add tests for both no-op and real sample weights
* Improve naming and remove useless comment
* Fix small test issues
* Fix test for binary classification
* Add test for regressions based on example from initial issue
* Edit whats_new
* 79
* Simplify test code for regression partial dependence
* PEP8
* Facepalm
* Refer to the public function in whats_new
* Make the sample weight test standalone for further reuse
* Fix PR number
* Testing with L1 relative distance computed as averages
* Testing element-wise
* Fix and simplify unit test for binary classification
* Clarify functional test
2019-04-05 11:46:57 -04:00
Roman Yurchak
49570484db
MAINT Use cython language_level=3 directive ( #12873 )
2019-02-28 18:45:15 +01:00
Joel Nothman
c3bdc0a89a
DOC clean up assorted type specifications ( #10441 )
2018-01-11 09:11:17 +11:00
Guillaume Lemaitre
8616a0863c
[MRG+1] FIX convert to CSR in decision_function ( #10102 )
2017-12-01 07:38:02 +11:00
Ibraim Ganiev
78dbcb2838
[MRG] fix #6101 GradientBoosting decision_function for sparse inputs ( #6116 )
2016-10-15 21:41:44 +11:00
Nelson Liu
d2aaf0f4bb
doc: fix spellings of 'license'
2016-03-31 17:25:31 -07:00
Jacob Schreiber
5978c0bbdf
ENH split _tree.pyx into several files
2015-09-09 11:28:24 +02:00
Lars Buitinck
cdd2279c09
ENH fix astype usage to prevent copying
...
Removed where possible; using copy=False (from utils.fixes) where needed.
Also some C integer type fixes to gradient boosting.
2014-06-18 11:01:28 +02:00
Gilles Louppe
57a743a157
ENH: rename Node attributes to avoid confusion
2014-04-12 11:06:57 +02:00
Joel Nothman
e7e7133912
ENH/FIX Change Tree underlying data structure
...
* avoid segfault (#2726 ) by setting base on numpy arrays
* A struct array for tree nodes and values array (size indeterminate at
compile time) are the only underlying structure, so each node is locally
grouped memory, and joblib dumps will save only two numpy files per
tree.
* predict() uses the value array's take method, reducing code repetition
2014-01-16 09:32:16 +11:00
GaelVaroquaux
6dcfe690a7
MAINT: remove utf-8 headers
...
Without encoding headers, Python imports will fail if UTF8 characters
creep in. Thus, they will not go unnoticed.
2013-08-26 14:55:51 +02:00
Peter Prettenhofer
bf8c786251
fix: proper dtype for SIZE_t
2013-07-22 12:19:57 +02:00
Peter Prettenhofer
4742806106
gbrt now works with new DecisionTree implementation
2013-07-22 12:19:57 +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
37c1d092f8
COSMIT shut up the build by calling np.import_array in Cython modules
...
$(make in 2>&1 | wc -l) down from 706 to 517.
Took the liberty of modernizing some of the Cython code while I was at it.
2013-01-10 18:00:21 +01:00
Arnaud Joly
357f3c17d7
Call DecisionTreeRegressor instead of Tree
2012-12-11 09:33:10 +01:00
Peter Prettenhofer
ef9161bb47
more explicit typing (int32, float64)
2012-11-13 19:57:05 +01:00
Peter Prettenhofer
63bae39fc1
cosmit: docstrings
2012-11-11 12:37:59 +01:00
Peter Prettenhofer
df909c74f3
rename dependency -> dependence
2012-10-30 08:45:34 +01:00
Peter Prettenhofer
021e9f9a68
add learn rate to partial dependency function
2012-10-22 09:26:27 +02:00
Peter Prettenhofer
7f203451a1
automatically create grid from training data
...
cosmit
docstrings
2012-10-14 19:57:39 +02:00
Peter Prettenhofer
ac7f39907b
cleaned tree traversal and sorted out weighting
2012-10-12 18:04:49 +02:00
Peter Prettenhofer
20f654032e
implemented partial dependecy plot
2012-10-11 22:52:26 +02:00
Peter Prettenhofer
2cce14c6ef
cosmit: better docstrings
2012-07-21 16:01:17 +02:00
Gilles Louppe
1f282c6186
FIX: gradient boosting (1)
2012-07-16 13:07:18 +02:00
Peter Prettenhofer
09d424166f
fix: gradient boosting regressor does not check if X is c-continous
2012-05-12 18:29:06 +02:00
Peter Prettenhofer
40f213267f
rm old tree prediction methods;
...
cosmit
2012-04-02 12:13:54 +02:00
Peter Prettenhofer
d1a122e642
use approriate data types (Py_ssize_t)
2012-03-30 08:27:54 +02:00
Peter Prettenhofer
92b8e86a57
cosmit
2012-03-29 22:07:52 +02:00
Peter Prettenhofer
11dd55b3fc
fast tree prediction based on mystic cython kung-fu
2012-03-29 21:43:13 +02:00
Peter Prettenhofer
00e17f2b60
add prediction method for specific stage
2012-03-29 10:26:10 +02:00
Peter Prettenhofer
f349e42f7f
wip
2012-03-29 09:02:52 +02:00
Peter Prettenhofer
bea9264d38
added gbrt extension module (faster prediction methods)
2012-03-29 08:34:45 +02:00