Commit Graph

2536 Commits

Author SHA1 Message Date
Jan Hendrik Metzen 141eb0b27c REFACTOR Rename GPR method sample to sample_y 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen 27bd525c96 DOC Reorganizing gaussian_process examples 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen a3abc09456 ENH Added Exponentiation kernel (DotProduct no longer has internal degree) 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen 403b5f1412 REFACTOR REnamed kernel property params to theta 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 9f6e48f6cc REFACTOR GP kernels use separate specification of bounds and params (no joint param_space) 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen d0bc5dc35c FIX GPs do not modify kernel attribute but store optimized kernels in kernel_ 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 49badf9f56 DOC Illustrating different kernels in plot_gpr_prior_posterior.py 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 98f9774cd1 DOC Revising CO2 example 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen d8405c2403 REFACTOR Hyperparameter optimization in GPs enabled explicitly by optimizer parameter 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen f534a972df DOC Initial version of Mauna Loa CO2 example 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen e165fed1cc REFACTOR GaussianProcessClassification/Regression -> ...Classifier/Regressor 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 226bb3a839 DOC Revised examples based on @eickenberg's comments 2015-10-19 18:04:54 +02:00
Jan Hendrik Metzen 7b4d93535b DOC Revised GP examples (added doc etc.) 2015-10-19 18:04:54 +02:00
Jan Hendrik Metzen 1c5db5f1df ADD Examples for GP regression 2015-10-19 18:04:54 +02:00
Jan Hendrik Metzen e548d5652a ADD Examples for GP classification 2015-10-19 18:04:54 +02:00
Gilles Louppe 0d26d54df5 Merge pull request #5423 from MechCoder/example_fix
[MRG + 1] Fix broken examples using RandomTreeEmbeddings
2015-10-17 09:24:04 +02:00
Manoj Kumar 5f3cbb531f Merge pull request #5421 from shagunsodhani/proposed-fix-for-#5387
[MRG + 1] proposed fix for #5387
2015-10-16 15:18:19 -04:00
MechCoder c31de116f9 Fix broken examples using RandomTreeEmbeddings
RandomTreeEmbeddings overwrites the fit_transform method of
_LearntSelectorMixin
2015-10-16 12:44:04 -04:00
Olivier Grisel c0c2c73797 Merge pull request #5411 from lesteve/fix-plot-tomography-l1-reconstruction-example
[MRG] Fix plot_tomography_l1_reconstruction example
2015-10-16 16:57:37 +02:00
shagun Sodhani bd66a270b9 proposed fix for #5387 2015-10-16 20:13:46 +05:30
Loïc Estève 32ab5b5d24 DOC fix missing import in plot_lle_digits example
and remove unused lda import.
2015-10-15 21:16:20 +02:00
Loïc Estève 02b9a726e1 DOC Fix plot_tomography_l1_reconstruction example
numpy 1.10 raises an exception when doing inplace operation
with an int and float array.
2015-10-15 16:37:24 +02:00
Michael Patterson 3c22232c4b Now plots based on the number of features in X
In previous commit,  I used n_features to set the number of features, and plotted based on that variable. Based on feedback, I removed n_features, and now plotting is based on X.shape[1]. This makes the code general and easy to port. I copied this into an iPython notebook to verify it still outputs the correct graph.
2015-10-11 23:09:39 -07:00
Michael Patterson 0fec61a709 Changed the number of features from 10 to variable
I ported this code into my own, and when I tried plotting, I found the number of features was hard coded to 10. By switching to a set variable, the number of features is no longer a magic number, and the code is more readable.
2015-10-11 16:58:41 -07:00
MechCoder 5a0db1717a 1. Added parameter prefit to pass in a fitted estimator.
2. Use assert_warns instead of catch_warnings
3. Remove depracation warnings in common tests.
2015-10-09 01:57:36 -04:00
MechCoder 2ee718cc75 Add narrative docs and fix examples 2015-10-05 11:25:06 -04:00
MechCoder 10176d9897 Now a fitted estimator can be passed to SelectFromModel 2015-10-05 11:25:06 -04:00
MechCoder 9cee0d95f8 Added example to depict feature selction using SelectFromModel and Lasso 2015-10-05 11:24:02 -04:00
Lars Buitinck 47a85f3f34 MAINT: better timing and general fixes in NMF/LDA example
Knowing how long the whole script has run is not very useful for
benchmarking.
2015-09-30 21:45:32 +02:00
TomDLT ceeef70037 ENH refactor NMF and add CD solver 2015-09-21 11:42:07 +02:00
Joel Nothman b9284a759f Merge pull request #5288 from jnothman/bicluster-example-speed
[MRG] Bicluster example speed
2015-09-20 22:31:46 +10:00
Joel Nothman a24b932095 DOC comment on obscure syntax 2015-09-20 22:30:26 +10:00
Joel Nothman 8f0d4fc116 ENH avoid slow CSR fancy indexing variant
See https://github.com/scipy/scipy/issues/5265
2015-09-18 12:13:46 +10:00
Vinayak Mehta 679936f6bc MAINT Deprecate LDA/QDA in favor of expanded names
The LDA accronym for Linear Discriminant Analysis is ambiguous
because of the newly introduced Latent Dirichlet Allocation model.

We therefore deprecate the sklearn.lda.LDA and sklearn.lda.QDA
in favor of explicit names.
2015-09-11 15:32:11 +02:00
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
Danny Sullivan 4ceffe05a1 Adding Implementation of SAG 2015-09-10 13:27:04 -04:00
Jacob Schreiber bc225a5e1a ENH apply method added to Gradient Boosting 2015-09-10 10:32:51 +02:00
Alexandre Gramfort 6126eced61 unused import 2015-08-31 21:52:48 +02:00
Andreas Mueller 96c329f463 Merge pull request #5037 from betatim/tree-feature-transform
[MRG+1] Trees as feature transformers
2015-08-31 11:43:49 -04:00
Gael Varoquaux 3e23cf0496 Merge pull request #4104 from maheshakya/johnson-lindenstrauss_bound_example_fix
DOC Modified math expressions to theoretical bounds.
2015-08-30 14:06:39 +01:00
Gael Varoquaux c7795695d0 Merge branch 'master' into pr_3651 2015-08-30 10:48:16 +01:00
Gael Varoquaux bcb6d3bcf8 DOC: minor cosmetric to ROC example 2015-08-30 10:47:07 +01:00
Joel Nothman 2ba124b7be DOC use correct attribute in example 2015-08-28 11:39:12 +10:00
rasbt 25a217b016 small typo fix "radius" in rbf kernel 2015-08-16 18:34:54 -04:00
Tim Head ea8d092f2c Explicitly mention RandomTreesEmbedding in the text 2015-08-14 20:04:46 +02:00
Lars edf077ccd6 Merge pull request #5050 from AnishShah/issue5043
DOC Fix documentation of callable kernel
2015-08-14 18:43:24 +02:00
Anish Shah a7081d797f [issue #5043] fix documentation of callable kernel 2015-08-14 15:40:03 +05:30
Tim Head 89ec72ea2f Example to demonstrate use of tree.apply() method
This example trains several tree based ensemble methods and uses
them to transform the data into a high dimensional, sparse space.
The trains a linear model on this new feature space. The idea is
taken from:

Practical Lessons from Predicting Clicks on Ads at Facebook Junfeng Pan,
He Xinran, Ou Jin, Tianbing XU, Bo Liu, Tao Xu, Yanxin Shi, Antoine
Atallah, Ralf Herbrich, Stuart Bowers, Joaquin Quiñonero Candela
International Workshop on Data Mining for Online Advertising (ADKDD)

https://www.facebook.com/publications/329190253909587/
2015-08-11 20:38:07 +02:00
Raghav R V 664d78eb7c MAINT Remove support for the deprecated sequence of sequences
MAINT Remove sequence of sequence support from datasets
MAINT Remove return_indicator param
MAINT Remove multilabel-seq test in OVR
MAINT Remove multilable-seq test in check_cv
MAINT Remove multilabel seq test in label_binarizer
TST type_of_target returns "unknown" for multilabel-sequence types
TST _check_targets should raise a ValueError
DOC show multilabel indicator as an example; remove return_indicator param
DOC use consistent lower case y for target
2015-08-11 22:26:44 +05:30
Mathieu Blondel d341dac18d Remove shebang and utf-8 header. 2015-08-11 02:24:11 +09:00
Mathieu Blondel 0586070499 chmod -x 2015-08-11 02:15:44 +09:00
Lars a6c6e732c5 Merge pull request #3659 from chyikwei/onlineldavb
ENH Latent Dirichlet Allocation (LDA) with online variational Bayes
2015-08-09 19:13:01 +02:00
Andreas Mueller 9d14f7352e ENH: Renames CallableTransformer -> FunctionTransformer.
Makes `pass_y` an argument to FunctionTransformer to indicate that the
labels should be passed to the wrapped function.
2015-08-03 11:45:16 -04:00
Joe Jevnik cb0916c440 ENH: Adds CallableTransformer
CallableTransformer allows a user to convert a standard python callable
into a transformer for use in a Pipeline.
2015-08-03 11:45:16 -04:00
Arthur Mensch fead69a4ac Bugfix : type in cd changed for read only memmap compatibility 2015-07-31 12:12:40 +02:00
Andreas Mueller 0bcbf922e5 Merge pull request #4965 from mrphilroth/4922
[MRG+1] New k-means example
2015-07-29 11:20:27 -04:00
Alexandre Gramfort 24e962cfe1 cosmit in plot_cv_predict 2015-07-28 08:34:09 +02:00
Phil Roth f9e07364d6 Adding a new kmeans example. 2015-07-23 14:43:26 -04:00
edson duarte bc5155f080 Fixed small typos in SVM examples. 2015-07-14 22:37:08 -03:00
Vincent e28b6bdcf1 Added random seed for facial recognition example and updated the docstring 2015-07-11 21:49:07 +00:00
Yury Zhauniarovich d9e46314b0 Updated graph ranges
The minimum and maximum values for the graph were not correctly defined.
2015-07-10 14:13:56 +02:00
Chyi-Kwei Yau 5b7768b52e fix feature_names 2015-07-07 22:42:31 -04:00
Eduardo Caro 0e976e10f7 Change name of variable to be consistent with dataset 2015-07-02 02:13:06 -07:00
Chyi-Kwei Yau 1e74e7d8d1 fix typo and improve doc 2015-06-24 23:32:59 -04:00
Chyi-Kwei Yau 2f1a26e368 merge NMF and LDA example 2015-06-24 00:03:48 -04:00
rasbt c655bb9b0e changed clf to regr in decision tree regression examples 2015-06-17 15:20:23 -04:00
Alexandre Gramfort 38227e17ef Merge pull request #4861 from ltiao/patch-1
Update plot_ols.py (trivial)
2015-06-15 08:40:40 +02:00
Louis Tiao 3396087038 Update plot_ols.py
Minor/trivial NumPy slicing refactor
2015-06-15 16:17:28 +10:00
Andreas Mueller 891b8417c9 DOC remove linewidth in pca/ica example 2015-06-11 13:25:36 -04:00
Andreas Mueller 867da316ff DOC minor sphinx fixes 2015-06-04 16:29:19 -04:00
Andreas Mueller eedc1cddab Use more natural class_weight="auto" heuristic 2015-06-01 12:49:53 -04:00
Chyi-Kwei Yau ffe74abba2 change LDA example to script 2015-05-31 11:04:32 -04:00
Olivier Grisel f3b1208811 FIX typo in RobustScaler example 2015-05-27 11:18:31 +02:00
Andreas Mueller 0b07536990 Merge pull request #4125 from untom/RobustScaler
[MRG + 2] ENH RobustScaler
2015-05-26 18:02:41 -04:00
Alexey Grigorev 1defef0379 printing top terms even if LSI is used 2015-05-24 17:03:45 +02:00
Thomas Unterthiner c12ae6047b Fix documentation errors 2015-05-21 15:36:42 +02:00
Thomas Unterthiner 20c622f819 Improved example 2015-05-20 22:06:44 +02:00
Chyi-Kwei Yau b2eeb33f07 update example and change total_samples in fit method 2015-05-17 00:10:41 -04:00
Chyi-Kwei Yau 3618a02162 fix params and import test coverage 2015-05-16 20:53:01 -04:00
Thomas Unterthiner 283d50bb75 robust_scaling example 2015-05-16 21:53:21 +02:00
Chyi-Kwei Yau c41e640dcc rename variable and minor pep8 fix 2015-05-15 17:39:59 -04:00
Andreas Mueller da9a91d8f5 COSMIT remove unnecessary float casting from tomography example 2015-05-12 16:47:59 -04:00
Andreas Mueller e8356d39d5 FIX add missing numpy imports to VotingClassifier examples, pep8 fixes. 2015-05-12 16:41:44 -04:00
Chyi-Kwei Yau efd5afdb95 fix typos and imporve documentation 2015-05-09 21:31:45 -04:00
Chyi-Kwei Yau efd5e3bf1c don't use sparse.block_diag since it is new in scipy 0.11.0
update params and minor change

add onlineLDA example

rename onlineLDA to LatentDirichletAllocation

raise NotFittedError in trnasform

change model name in LDA example

cython optimization for online LDA model

fix import error

add evaluate_every parameter in online LDA model

add score in LDA model

fix doc format

update variable name and improve docs

fix broken example and change parameter name to n_samples & n_features

add check_non_negative function in LDA

add parameter to specify online/batch VB in fit method

improve documentation

set default hyper parameter to 1 / n_topics

use gen_batches in example

remove old func from example
2015-05-09 19:30:39 -04:00
Gilles Louppe fa5bd2c70b Merge pull request #4692 from kianho/plot-ensemble-oob-trace
Refined the docstring for plot_ensemble_oob.py (#4665)
2015-05-08 14:54:00 +02:00
Kian Ho 2656f7be61 Refined the docstring for plot_ensemble_oob.py.
- Minor change to #4665: cleaned up the writing style of the documentation.
2015-05-08 22:50:42 +10:00
Gael Varoquaux ef94a2a671 Merge pull request #4665 from kianho/plot-ensemble-oob-trace
[MRG+1] Script for example ensemble OOB error plot. Fixes #4273
2015-05-08 11:36:44 +02:00
Alexandre Gramfort 9eb1964724 Merge pull request #4161 from rasbt/ensemble-classifier
[MRG + 2] EnsembleClassifier implementation
2015-05-08 09:21:36 +02:00
Kian Ho e038cb3759 Made more amendments according to PR feedback.
A number of further amendments to the plot_ensemble_oob.py example
script were suggested in the PR thread and addressed accordingly:

- The ExtraTreesClassifier models were removed from the example, since
  they don't use bootstrapping by default (but can be using bootstrap=True).

- Included the OOB errors for RandomForestClassifier models with various
  max_features values.

- Changed the sample datasets to make for a nicer looking plot.

- Changed "cross-validated" to "validated" in the docstring.

- Added the relevant page numbers to the Hastie et al. reference.

- PEP8 compliance, fixed line > 80 chars.
2015-05-07 18:37:51 +10:00
Kian Ho b6ce3226f7 Amended plot_ensemble_oob.py according to #4665.
@amueller provided feedback on improving my original PR (#4665) of the
plot_ensemble_oob.py script.

A number of major changes were made accordingly:

- Used `matplotlib.pyplot` instead of `pylab`.

- To improve the run-time to <10secs, I reduced the dimensionality of
  the sample dataset and set the max. number of estimators to 150.

- To avoid OOB warnings, the min. number of estimators was set to 15.
  Values <15 would still raise the warnings.

- The script is PEP8-compliant via the `pep8` command-line script. I
  needed to move `print(__doc__)` and author list comments.

- Re-added @amueller to the author list (had mistakenly been removed).

- Added a link to this example to the user-guide under the `Ensemble
  Methods` section.
2015-05-05 17:36:22 +10:00
Kian Ho 5b2ee7a14f Minor amendments to plot_ensemble_oob.py.
Corrected typo in the docstring.

Removed explicit figure size statement.

Fixed docstring formatting.

Corrected the author list.
2015-05-05 16:58:50 +10:00
Kian Ho 017f289460 Initial commit of plot_ensemble_oob.py
This is a proposed fix for #4273.
2015-05-03 04:12:51 +10:00
rasbt 2910198f14 votingclassifier 2015-04-20 19:27:30 -04:00
Steven Seguin ced25e9ecd Change urlopen and iteritems functions for Python3 compat 2015-04-16 19:24:28 -04:00
Steven Seguin 641bd932e2 Change xrange to range and remove patching import 2015-04-14 22:46:26 -04:00
Steven Seguin 02b2712f17 change to explicitly import function 2015-04-14 22:23:50 -04:00
Steven Seguin af1a74cc48 add py3 xrange to bicluster example 2015-04-14 21:33:42 -04:00
Ali Baharev b1348bbc14 Typo: PCA is not the abbreviation of Probablisitic 2015-03-30 22:17:39 +02:00
Andreas Mueller 1491843d95 DOC minor fixes in formatting, don't use deprecated n_components in Agglomerative 2015-03-25 20:20:29 -04:00