trevorstephens
f75c98b872
refactor forests & trees class_weight calc
2015-01-31 18:27:29 -08:00
Andreas Mueller
c970fb51e7
COSMIT spelling
2015-01-15 15:09:35 -05:00
trevorstephens
35c2535bfc
rename cw option to subsample & refactor its implementation
2015-01-12 21:27:13 -08:00
trevorstephens
b541191754
Merge branch 'master' into rf-class_weight
...
Conflicts:
doc/whats_new.rst
sklearn/ensemble/forest.py
sklearn/tree/tree.py
2015-01-12 19:15:21 -08:00
Raghav R V
abd31d2cad
MAINT Make uniform the error raised for not fitted condition
2015-01-12 00:33:40 +05:30
trevorstephens
cad87b578c
rename vars & copy sample_weight
2015-01-10 11:49:42 -08:00
trevorstephens
9c7566e5df
Merge branch 'master' into rf-class_weight
...
Conflicts:
doc/whats_new.rst
2015-01-08 07:56:19 -08:00
trevorstephens
ac9ab961bb
Y-org rename & whats_new update
2015-01-08 02:31:24 -08:00
trevorstephens
2b24ccefa0
parameter validation checks & tests for errors
2015-01-03 13:15:42 -08:00
akshayah3
e77aac8e58
Documentation of max depth parameter
...
Changed the docstring
Few docstring changes
2014-12-29 20:04:25 +05:30
trevorstephens
085d677ea2
add class_weight to trees, expand tests & minor refactor
2014-12-22 16:50:58 -08:00
Arnaud Joly
c03c01a504
ENH Bring sparse input support to tree-based methods
...
Author: Arnaud Joly <arnaud.v.joly@gmail.com>
Fares Hedayati <fares.hedayati@gmail.com>
2014-11-06 13:58:28 +01:00
Joel Nothman
b3bdb08964
DOC fix formatting of attributes etc. in docstrings
2014-07-28 19:04:59 +10:00
Lars Buitinck
2fca6ce244
MAINT remove deprecated code from trees and forests
2014-07-22 15:52:48 +02:00
Andreas Mueller
6e2a83b4e1
remove check_arrays stuff and old input validation
2014-07-20 13:31:45 +02:00
Arnaud Joly
c73c9a1c8b
MAINT Re-order argument to put deprecated one at the end
2014-07-12 16:33:28 +02:00
Noel Dawe
72b3da8302
tree: use min_weight_leaf internally while exposing min_weight_fraction_leaf
2014-07-02 11:47:32 +02:00
Noel Dawe
7e9c093585
tree: add min_weight_fraction_leaf
2014-07-02 11:47:31 +02:00
Matthias Feurer
bb0689f525
ENH: make trees work with very small max_features.
...
Trees do no longer fail if int(max_features*n_features) == 0, but use
max_features=1 if the max_features paramater was larger than 0.0
Fixes #3171 .
2014-06-01 16:34:37 +02:00
Arnaud Joly
d9bd47d51a
Merge pull request #2977 from arjoly/tree-cleanup
...
[MRG] Some cleanup in _tree.pyx
2014-03-21 17:38:14 +01:00
Lars Buitinck
cc7f7d603d
DOC trees/ensembles: class labels need not be integers
2014-03-21 10:54:20 +01:00
Arnaud Joly
0334d769ac
ENH avoid serialising the random_state in the tree
2014-03-20 14:20:34 +01:00
Arnaud Joly
e22045a670
ENH avoid serializing the splitter & criterion + avoid storing tree parameter in the tree structure
2014-03-20 14:20:34 +01:00
Gilles Louppe
71ce1d5ac7
DOC: the search for a split does not until one valid partition is found
2014-03-18 14:19:40 +01:00
Lars Buitinck
b97fb3c5fc
MAINT drop support for NumPy < 1.6.1
2014-03-02 20:13:57 +01:00
Lars Buitinck
7c621fc261
DOC no more "arithmetical order" for classes
2014-02-17 11:47:51 +01:00
Lars Buitinck
c997cdee9f
COSMIT pep8 + full stop police
...
metrics/tests/test_score_objects.py made stricter by replacing . with \.
in regular expressions.
2014-02-01 15:28:53 +01:00
Gilles Louppe
0bb04e1ee4
COSMIT: PEP8 + coding style
2014-01-16 13:44:43 +01:00
Peter Prettenhofer
4e4a8a9681
fix: wrong placeholder in format string
2014-01-08 14:04:27 +01:00
Peter Prettenhofer
9a3c22a9c9
cosmit: better exceptions
2014-01-08 12:25:56 +01:00
Gilles Louppe
547c9d69c9
Nitpicks
2013-12-16 10:46:40 +01:00
Peter Prettenhofer
1b8ea52741
max_leaf_nodes has precedence over max_depth if the former is not None.
2013-12-02 20:13:57 +01:00
Gilles Louppe
c281adf2b7
Add max_leaf_nodes to forest + DOC
2013-11-30 18:34:13 +01:00
Peter Prettenhofer
2ff06a2a0a
cosmit: remove commented out code - add comment
2013-11-30 15:35:59 +01:00
Peter Prettenhofer
47f58d4212
rename GBM_MSE to FriedmanMSE
...
add friedman_mse to regression criterions in tree.py
2013-11-25 22:35:05 +01:00
Peter Prettenhofer
0808cfc4f5
cleanup: remove BranchBuilder, added more comments
2013-11-21 17:41:57 +01:00
Peter Prettenhofer
4b45668212
Best-first instead of branch heuristic - identical score as GBM on covertype
2013-11-21 13:43:54 +01:00
Peter Prettenhofer
13e43d202b
Implement GBM's best-first heuristic tree growing procedure .
2013-11-20 21:10:16 +01:00
Peter Prettenhofer
3f0c3f076c
check value of max_leaf_nodes
2013-11-03 16:07:57 +02:00
Peter Prettenhofer
5f09b5a419
tree code now supports both c-style and fortran inputs
2013-11-03 14:19:49 +02:00
Peter Prettenhofer
e9cea77bd8
PriorityQueue for best-first tree growing
...
max_leaf_nodes instead of complete parameter
2013-11-03 09:40:24 +02:00
Peter Prettenhofer
1192fe64e5
Tree: compute partition specific impurity and total impurity in criterion.children_impurity. Pass partition impurity to stack to avoid re-computation (saves some runtime).
...
New tree parameter: complete; specifies whether complete binary trees are grows or if a greedy branch of max_depth is grown with at most max_depth + 1 leafs.
2013-11-02 01:04:23 +02:00
Gilles Louppe
b460ffb8fe
ENH: added PresortBestSplitter
2013-09-21 18:26:28 +02:00
Arnaud Joly
7551a82e89
ENH reduce memory overhead of storing tree ensemble
2013-09-12 14:25:49 +02:00
Noel Dawe
8ecd5090bc
DOC: missing documentation of splitter parameter in tree.py
2013-08-22 16:24:07 -07:00
Andreas Mueller
716fbb062c
much better input validation, test that warning is raised on (n_samples, 1) y
2013-07-28 16:08:16 +02:00
Gilles Louppe
f0721083d0
FIX: remove blank lines
2013-07-27 12:38:17 +02:00
Andreas Mueller
e488704849
COSMIT pep8
2013-07-23 15:17:32 +02:00
Andreas Mueller
edb2ff7be3
COSMIT sphinx fixes
2013-07-23 15:02:10 +02:00
Gilles Louppe
8f9f2e41bd
WIP: better check inputs
2013-07-22 12:20:02 +02:00