gamma
Other small improvements to tests and documentation.
Gradient-boosted trees
ensemble.partial_dependence.partial_dependence
The table of contents on the website has now been made expandable by
Jaques Grobler.
Ridge regression and ridge classification fitting with sparse_cg solver
no longer has quadratic memory complexity, by Lars Buitinck and
Fabian Pedregosa.
Ridge regression and ridge classification now support a new fast solver
called lsqr, by Mathieu Blondel.
cross_validation.cross_val_score now works with precomputed kernels
and affinity matrices, by Andreas Müller.
LARS algorithm made more numerically stable with heuristics to drop
regressors too correlated as well as to stop the path when
numerical noise becomes predominant, by Gael Varoquaux.
New kernel metrics.chi2_kernel by Andreas Müller, often used
in computer vision applications.
Fixed a floating point exception in the decision trees
module, by Seberg.
decomposition.dict_learning_online
Renamed all occurrences of max_iters to max_iter for consistency.
This applies to semi_supervised.LabelPropagation and
semi_supervised.label_propagation.LabelSpreading.
The module sklearn.linear_model.sparse is gone. Sparse matrix support
was already integrated into the “regular” linear models.
sklearn.metrics.mean_square_error, which incorrectly returned the
accumulated error, was removed. Use metrics.mean_squared_error instead.
Passing class_weight parameters to fit methods is no longer
supported. Pass them to estimator constructors instead.
GMMs no longer have decode and rvs methods. Use the score,
predict or sample methods instead.
The solver fit option in Ridge regression and classification is now
deprecated and will be removed in v0.14. Use the constructor option
instead.
feature_extraction.text.DictVectorizer now returns sparse
matrices in the CSR format, instead of COO.
Renamed k in cross_validation.KFold and
cross_validation.StratifiedKFold to n_folds, renamed
n_bootstraps to n_iter in cross_validation.Bootstrap.
The attribute gmm of hmm.GMMHMM was renamed to gmm_
to adhere more strictly with the API.
classes_ and n_classes_ attributes of
tree.DecisionTreeClassifier and all derived ensemble models are
now flat in case of single output problems and nested in case of
multi-output problems.
svm.SVC and svm.NuSVC now provide a classes_
attribute and support arbitrary dtypes for labels y.
Also, the dtype returned by predict now reflects the dtype of
y during fit (used to be np.float).
Changed default test_size in cross_validation.train_test_split
to None, added possibility to infer test_size from train_size in
cross_validation.ShuffleSplit and
cross_validation.StratifiedShuffleSplit.
Renamed function sklearn.metrics.zero_one to
sklearn.metrics.zero_one_loss. Be aware that the default behavior
in sklearn.metrics.zero_one_loss is different from
sklearn.metrics.zero_one: normalize=False is changed to
normalize=True.
In the Naive Bayes classifiers, the class_prior parameter was moved
from fit to __init__.