Commit Graph

348 Commits

Author SHA1 Message Date
Joel Nothman 210cefa5d5 FIX cannot use set notation for Py2.6 2013-06-09 22:33:38 +10:00
Joel Nothman fd3bd2d200 FIX/COSMIT helper to identify target types
* Fixes bugs related to simply checking type(..) equality
* Refactors metrics and preprocessing
* Invalidates mix of sequences of sequences and label indicators in
  metrics
* Invalidates row vectors in metrics
* Fixes bug where single-class target led to incorrect F-score
2013-06-09 22:05:56 +10:00
Robert Layton 81ad2a7f9a Added new files (from previous commit) 2013-06-04 13:57:15 +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 8ad6b7b376 Added test 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
Joel Nothman ecf135a49b ENH faster unique_labels for big sequences of sequences 2013-05-28 16:57:04 +10:00
Olivier Grisel e94b774962 FIX: restore numpy 1.3.0 compat with np.divide fix 2013-05-04 19:08:22 +02:00
Jaques Grobler 2ffb484adb COSMIT pep8 2013-05-04 10:43:39 +02:00
Olivier Grisel 0859653e09 FIX: use the mldata mock in docstring as well 2013-05-01 13:49:58 +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
Stefano Lattarini 67ece78da4 COSMIT various typofixes
As suggested by codespell <https://github.com/lucasdemarchi/codespell>

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-04-11 21:22:14 +02:00
Andreas Mueller a1d4d184fe COSMIT pep8 2013-04-02 13:30:55 +02:00
Olivier Grisel 3379504b6b PY3: fix urlopen in mldata and california housing loaders 2013-03-19 17:56:57 +01:00
Lars Buitinck b37791bab9 ENH cut MiniBatchKMeans memory usage in half for large n_clusters
Also, changed logging message to reflect the (public) class that is logging,
not the (private) function.

New Cython code lives in utils.sparsefuncs, because it may prove more
generally useful.
2013-03-13 15:23:50 +01:00
Lars Buitinck 09f2d90262 P3K make feature_extraction.text work
All tests pass with Py2 and Py3.
2013-03-10 22:20:29 +01:00
Lars Buitinck 2cb8b5e94b P3K some more fixes in random places 2013-03-08 18:31:35 +01:00
Lars Buitinck 29ed168831 BUG fix compute_class_weights issue in SGD
Fixes #1749.
2013-03-08 17:33:08 +01:00
Andreas Mueller ffad26a299 FIX compute_class_weight edge case 2013-03-06 23:41:24 +01:00
Lars Buitinck 9633d9d46c ENH use bincount in compute_class_weight
As suggested by @amueller.
2013-03-06 23:04:08 +01:00
Lars Buitinck dc2c5c42c9 FIX + TST + DOC compute_class_weight
Fixes #1746, #1747. Bug reported and fix proposed by @gatagat.
2013-03-06 22:59:02 +01:00
Lars Buitinck 6bf90fe436 TST compute_class_weight in utils 2013-03-06 21:35:54 +01:00
Andreas Mueller 0c94b55c63 ENH add randomized hyperparameter optimization 2013-03-03 20:56:39 +01:00
Arnaud Joly 5bcf25fc2f ENH multilabel metrics: accuracy, Hamming, 0-1 loss 2013-03-02 20:41:34 +01:00
Lars Buitinck 746c8bd261 DOC rm failing doctest on graph_laplacian 2013-02-27 00:59:36 +01:00
Jake Vanderplas b9a8e085e8 BUG update graph_laplacian to upstream SciPy version
Fixes several bugs and I hope #1698 as well.
2013-02-27 00:25:51 +01:00
Lars Buitinck 541987802f P3K range vs. xrange 2013-02-14 02:05:35 +01:00
Lars Buitinck 85ec0fd1ae P3K death to the print statement 2013-02-11 23:11:57 +01:00
Lars Buitinck c809368392 BUG revert P3K changes that broke mldata tests 2013-02-10 15:40:41 +01:00
Olivier Grisel 1967a0b323 P3K use six to have a python 2 & 3 compatible code base 2013-02-09 18:08:44 +01:00
Andreas Mueller 2297306edf COSMIT pep8 2013-02-08 22:10:40 +01:00
Olivier Grisel 0693734fc9 P3K More python 2 / 3 compat in tree exports 2013-02-03 22:01:53 +01:00
Lars Buitinck 57b86fc434 P3K use six.string_types and six.PY3 2013-02-03 20:12:42 +01:00
Lars Buitinck 68d2388f24 COSMIT translate lgamma replacement to C and clean it up 2013-01-31 01:22:08 +01:00
Andreas Mueller d37cead3e2 Merge pull request #1529 from vene/lgamma_port
[MRG] Added lgamma Cython interface to utils for MSVC
2013-01-20 06:41:48 -08:00
Vlad Niculae b2a3f972c4 Merge branch 'master' into lgamma_port
Conflicts:
	sklearn/metrics/cluster/expected_mutual_info_fast.pyx
2013-01-13 14:07:37 +00: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
Andreas Mueller 59b5602346 DOC more accurate comment in class weight computation 2013-01-12 18:37:08 +01:00
Mikhail Korobov bd5e502278 P3K fix incorrect import
(it breaks e.g. "import sklearn.metrics" under Python 3.3)
2013-01-11 05:02:51 +06: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
Andreas Mueller 7819e182e2 DOC try to be as clear as possible. 2013-01-05 19:59:46 +01:00
Andreas Mueller de9bcc9fdb FIX do checks even if allow_lists 2013-01-05 19:59:46 +01:00
Andreas Mueller 03048ddb5f ENH more logical behavior, better docstring, tests 2013-01-05 19:59:46 +01: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 1c1538af87 ENH move utility function into dedicated file, not __init__.py 2013-01-03 13:28:10 +01:00
Andreas Mueller 956975a70e DOC changed docstring to be more clear. 2013-01-03 13:21:51 +01:00
Andreas Mueller 3be8a23d2d ENH addressed @ogrisel's comments. 2013-01-03 13:21:51 +01:00
Andreas Mueller 843d795a94 DOC docstring for compute_class_weight 2013-01-03 13:21:51 +01:00
Andreas Mueller 127c44b730 ENH refactoring class weights for SVM and SGD 2013-01-03 13:21:50 +01:00
Andreas Mueller b91f5c03a8 FIX i should trust my past self a bit more 2012-12-24 15:42:58 +01:00