8000 MNT Clean up examples · scikit-learn/scikit-learn@5e88973 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e88973

Browse files
MNT Clean up examples
* chmod -x * remove Python shebang from examples: #!/usr/bin/python * also remove econdoding declarations: # -*- coding: utf-8 -*-
1 parent 31c66a9 commit 5e88973

32 files changed

+2
-78
lines changed

examples/classification/plot_classifier_comparison.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=====================
63
Classifier comparison

examples/cluster/plot_cluster_iris.py

100755100644
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
K-means Clustering

examples/cluster/plot_color_quantization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
==================================
43
Color Quantization using K-Means

examples/cluster/plot_dbscan.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
===================================
43
Demo of DBSCAN clustering algorithm

examples/cluster/plot_digits_agglomeration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Feature agglomeration

examples/cluster/plot_face_compress.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Vector Quantization Example

examples/compose/plot_compare_reduction.py

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
31
"""
42
=================================================================
53
Selecting dimensionality reduction with Pipeline and GridSearchCV

examples/compose/plot_digits_pipe.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Pipelining: chaining a PCA and a logistic regression

examples/compose/plot_transformed_target.py

100755100644
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
======================================================
63
Effect of transforming the targets in regression model

examples/datasets/plot_digits_last_image.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
The Digit Dataset

examples/datasets/plot_iris_dataset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
The Iris Dataset

examples/decomposition/plot_pca_3d.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Principal components analysis (PCA)

examples/decomposition/plot_pca_iris.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
PCA example with Iris Data-set

examples/gaussian_process/plot_gpc_isoprobability.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=================================================================
63
Iso-probability lines for Gaussian Processes classification (GPC)

examples/linear_model/plot_iris_logistic.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Logistic Regression 3-class Classifier

examples/linear_model/plot_lasso_lars.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
"""
32
=====================
43
Lasso path using LARS

examples/linear_model/plot_logistic.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
4-
51
"""
62
=========================================================
73
Logistic function

examples/linear_model/plot_logistic_path.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
"""
32
==============================================
43
Regularization path of L1- Logistic Regression

examples/linear_model/plot_multi_task_lasso_support.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
"""
32
=============================================
43
Joint feature selection with multi-task Lasso

examples/linear_model/plot_ols.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Linear Regression Example

examples/linear_model/plot_ols_3d.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Sparsity Example: Fitting only features 1 and 2

examples/linear_model/plot_ols_ridge_variance.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
Ordinary Least Squares and Ridge Regression Variance

examples/manifold/plot_manifold_sphere.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=============================================
63
Manifold Learning methods on a severed sphere

examples/model_selection/grid_search_text_feature_extraction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
"""
32
==========================================================
43
Sample pipeline for text feature extraction and evaluation

examples/preprocessing/plot_all_scaling.py

100755100644
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=============================================================
63
Compare the effect of different scalers on data with outliers

examples/preprocessing/plot_discretization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
"""
42
================================================================
53
Using KBinsDiscretizer to discretize continuous features

examples/preprocessing/plot_discretization_classification.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
31
"""
42
======================
53
Feature discretization

examples/preprocessing/plot_discretization_strategies.py

Expand all lines: examples/preprocessing/plot_discretization_strategies.py
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
==========================================================
43
Demonstrating the different strategies of KBinsDiscretizer

examples/preprocessing/plot_scaling_importance.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
31
"""
42
=========================================================
53
Importance of Feature Scaling

examples/svm/plot_rbf_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''
1+
"""
22
==================
33
RBF SVM parameters
44
==================
@@ -73,7 +73,7 @@
7373
``gamma_range`` steps will increase the resolution of the hyper-parameter heat
7474
map.
7575
76-
'''
76+
"""
7777
print(__doc__)
7878

7979
import numpy as np

examples/svm/plot_svm_kernels.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
SVM-Kernels

examples/svm/plot_svm_margin.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
41
"""
52
=========================================================
63
SVM Margins Example

0 commit comments

Comments
 (0)
0