Sparsity Example
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Features 1 and 2 of the diabetes-dataset are fitted and plotted below. It illustrates that although feature 2 has a strong coefficient on the

2025-01-10 15:47:30
L1 Penalty and Sparsity in Logistic Regression
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Comparison of the sparsity (percentage of zero coefficients) of solutions when L1 and L2 penalty are used for different values of C. We can see

2025-01-10 15:47:30
Feature transformations with ensembles of trees
  • References/Python/scikit-learn/Examples/Ensemble methods

Transform your features into a higher dimensional, sparse space. Then train a linear model on these features. First fit an ensemble of

2025-01-10 15:47:30
Lasso on dense and sparse data
  • References/Python/scikit-learn/Examples/Generalized Linear Models

We show that linear_model.Lasso provides the same results for dense and sparse data and that in the case of sparse data the speed is improved.

2025-01-10 15:47:30
Robust linear estimator fitting
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Here a sine function is fit with a polynomial of order 3, for values close to zero. Robust fitting is demoed in different situations: No

2025-01-10 15:47:30
Face completion with a multi-output estimators
  • References/Python/scikit-learn/Examples/General examples

This example shows the use of multi-output estimator to complete images. The goal is to predict the lower half of a face given its upper half

2025-01-10 15:47:30
Clustering text documents using k-means
  • References/Python/scikit-learn/Examples/Working with text documents

This is an example showing how the scikit-learn can be used to cluster documents by topics using a bag-of-words approach. This example uses a scipy.sparse

2025-01-10 15:47:30
Probability Calibration for 3-class classification
  • References/Python/scikit-learn/Examples/Calibration

This example illustrates how sigmoid calibration changes predicted probabilities for a 3-class classification problem. Illustrated is the

2025-01-10 15:47:30
Probabilistic predictions with Gaussian process classification
  • References/Python/scikit-learn/Examples/Gaussian Process for Machine Learning

This example illustrates the predicted probability of GPC for an RBF kernel with different choices of the hyperparameters

2025-01-10 15:47:30
Vector Quantization Example
  • References/Python/scikit-learn/Examples/Clustering

Face, a 1024 x 768 size image of a raccoon face, is used here to illustrate how k-means is used for vector quantization.

2025-01-10 15:47:30