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

Skip to content

Commit cfd50c2

Browse files
MNT Clean up examples
* chmod -x * remove Python shebang from examples: #!/usr/bin/python * only UTF-8-encoded files contain "-# -*- coding: utf-8 -*-"
1 parent d3429c1 commit cfd50c2

34 files changed

+6
-61
lines changed

examples/applications/plot_cyclical_feature_engineering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
"""
23
================================
34
Time-related feature engineering

examples/applications/plot_digits_denoising.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
"""
23
================================
34
Image denoising using kernel PCA

examples/classification/plot_classifier_comparison.py

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

examples/cluster/plot_cluster_iris.py

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
Feature agglomeration

examples/cluster/plot_face_compress.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
The Digit Dataset

examples/datasets/plot_iris_dataset.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
Sparsity Example: Fitting only features 1 and 2

examples/linear_model/plot_ols_ridge_variance.py

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

examples/linear_model/plot_tweedie_regression_insurance_claims.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
"""
23
======================================
34
Tweedie regression on insurance claims

examples/manifold/plot_manifold_sphere.py

Lines changed: 0 additions & 3 deletions
10000
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/model_selection/plot_grid_search_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
"""
23
==================================================
34
Statistical comparison of models using grid search

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_classification.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
32
"""
43
======================

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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/python
21
# -*- coding: utf-8 -*-
3-
42
"""
53
=========================================================
64
SVM-Kernels

examples/svm/plot_svm_margin.py

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

0 commit comments

Comments
 (0)
0