Logistic Regression 3-class Classifier
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Show below is a logistic-regression classifiers decision boundaries on the

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
SGD: Weighted samples
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Plot decision function of a weighted dataset, where the size of points is proportional to its weight.

2025-01-10 15:47:30
Lasso model selection
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Use the Akaike information criterion (AIC), the Bayes Information criterion (BIC) and cross-validation to select an optimal value of the regularization

2025-01-10 15:47:30
Linear Regression Example
  • References/Python/scikit-learn/Examples/Generalized Linear Models

This example uses the only the first feature of the diabetes dataset, in order to illustrate a two-dimensional plot of this regression technique. 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
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
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
Logistic function
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Shown in the plot is how the logistic regression would, in this synthetic dataset, classify values as either 0 or 1, i.e. class one or two, using the logistic curve.

2025-01-10 15:47:30
Bayesian Ridge Regression
  • References/Python/scikit-learn/Examples/Generalized Linear Models

Computes a Bayesian Ridge Regression on a synthetic dataset. See

2025-01-10 15:47:30