Pipelining
  • References/Python/scikit-learn/Examples/General examples

The PCA does an unsupervised dimensionality reduction, while the logistic regression does the prediction. We use a GridSearchCV to

2025-01-10 15:47:30
Imputing missing values before building an estimator
  • References/Python/scikit-learn/Examples/General examples

This example shows that imputing the missing values can give better results than discarding the samples containing any missing value. Imputing

2025-01-10 15:47:30
The Johnson-Lindenstrauss bound for embedding with random projections
  • References/Python/scikit-learn/Examples/General examples

The

2025-01-10 15:47:30
Plotting Cross-Validated Predictions
  • References/Python/scikit-learn/Examples/General examples

This example shows how to use cross_val_predict to visualize prediction errors.

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
Concatenating multiple feature extraction methods
  • References/Python/scikit-learn/Examples/General examples

In many real-world examples, there are many ways to extract features from a dataset. Often it is beneficial to combine several methods to obtain

2025-01-10 15:47:30
Multilabel classification
  • References/Python/scikit-learn/Examples/General examples

This example simulates a multi-label document classification problem. The dataset is generated randomly based on the following process: pick

2025-01-10 15:47:30
Isotonic Regression
  • References/Python/scikit-learn/Examples/General examples

An illustration of the isotonic regression on generated data. The isotonic regression finds a non-decreasing approximation of a function while minimizing the mean squared

2025-01-10 15:47:30
Feature Union with Heterogeneous Data Sources
  • References/Python/scikit-learn/Examples/General examples

Datasets can often contain components of that require different feature extraction and processing pipelines. This scenario might occur when:

2025-01-10 15:47:30
Comparison of kernel ridge regression and SVR
  • References/Python/scikit-learn/Examples/General examples

Both kernel ridge regression (KRR) and SVR learn a non-linear function by employing the kernel trick, i.e., they learn a linear function in the

2025-01-10 15:47:30