diff --git a/doc/conf.py b/doc/conf.py index 1e27e9934122c..55a565520c7ec 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # scikit-learn documentation build configuration file, created by # sphinx-quickstart on Fri Jan 8 09:13:42 2010. # diff --git a/doc/sphinxext/sphinx_issues.py b/doc/sphinxext/sphinx_issues.py index 29eef175919d4..aa33a6f38e762 100644 --- a/doc/sphinxext/sphinx_issues.py +++ b/doc/sphinxext/sphinx_issues.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """A Sphinx extension for linking to your project's issue tracker. Copyright 2014 Steven Loria diff --git a/sklearn/cluster/_dbscan.py b/sklearn/cluster/_dbscan.py index ccb493e35a14e..f5d5bc81e6bba 100644 --- a/sklearn/cluster/_dbscan.py +++ b/sklearn/cluster/_dbscan.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ DBSCAN: Density-Based Spatial Clustering of Applications with Noise """ diff --git a/sklearn/cluster/_optics.py b/sklearn/cluster/_optics.py index 99b4951d9cdea..f8151543d80fd 100755 --- a/sklearn/cluster/_optics.py +++ b/sklearn/cluster/_optics.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Ordering Points To Identify the Clustering Structure (OPTICS) These routines execute the OPTICS algorithm, and implement various diff --git a/sklearn/cluster/_spectral.py b/sklearn/cluster/_spectral.py index dd49d82a1e358..390b567c0d0bb 100644 --- a/sklearn/cluster/_spectral.py +++ b/sklearn/cluster/_spectral.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Algorithms for spectral clustering""" # Author: Gael Varoquaux diff --git a/sklearn/feature_extraction/tests/test_text.py b/sklearn/feature_extraction/tests/test_text.py index 9113b6ceda02b..a2bc17ef93a27 100644 --- a/sklearn/feature_extraction/tests/test_text.py +++ b/sklearn/feature_extraction/tests/test_text.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections.abc import Mapping import re diff --git a/sklearn/feature_extraction/text.py b/sklearn/feature_extraction/text.py index e9c0d14a5eb3b..3cadf85596085 100644 --- a/sklearn/feature_extraction/text.py +++ b/sklearn/feature_extraction/text.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Authors: Olivier Grisel # Mathieu Blondel # Lars Buitinck diff --git a/sklearn/feature_selection/_base.py b/sklearn/feature_selection/_base.py index 282d60767f049..0790f543da7b2 100644 --- a/sklearn/feature_selection/_base.py +++ b/sklearn/feature_selection/_base.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Generic feature selection mixin""" # Authors: G. Varoquaux, A. Gramfort, L. Buitinck, J. Nothman diff --git a/sklearn/gaussian_process/__init__.py b/sklearn/gaussian_process/__init__.py index b22f0f10757a8..719208b7951be 100644 --- a/sklearn/gaussian_process/__init__.py +++ b/sklearn/gaussian_process/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # Author: Jan Hendrik Metzen # Vincent Dubourg # (mostly translation, see implementation details) diff --git a/sklearn/linear_model/_ransac.py b/sklearn/linear_model/_ransac.py index 3f85769e2273c..3893f46133ae1 100644 --- a/sklearn/linear_model/_ransac.py +++ b/sklearn/linear_model/_ransac.py @@ -1,5 +1,3 @@ -# coding: utf-8 - # Author: Johannes Schönberger # # License: BSD 3 clause diff --git a/sklearn/linear_model/_theil_sen.py b/sklearn/linear_model/_theil_sen.py index acb8fd2793a1a..71187bffde67f 100644 --- a/sklearn/linear_model/_theil_sen.py +++ b/sklearn/linear_model/_theil_sen.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ A Theil-Sen Estimator for Multiple Linear Regression Model """ diff --git a/sklearn/metrics/pairwise.py b/sklearn/metrics/pairwise.py index 3fba06e4b3ca3..7738c0bf81f38 100644 --- a/sklearn/metrics/pairwise.py +++ b/sklearn/metrics/pairwise.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # Authors: Alexandre Gramfort # Mathieu Blondel # Robert Layton diff --git a/sklearn/naive_bayes.py b/sklearn/naive_bayes.py index 602fe948b593b..ca7be2d3799a3 100644 --- a/sklearn/naive_bayes.py +++ b/sklearn/naive_bayes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ The :mod:`sklearn.naive_bayes` module implements Naive Bayes algorithms. These are supervised learning methods based on applying Bayes' theorem with strong diff --git a/sklearn/neighbors/_nca.py b/sklearn/neighbors/_nca.py index 416e4b901b01a..af76a000ef2cb 100644 --- a/sklearn/neighbors/_nca.py +++ b/sklearn/neighbors/_nca.py @@ -1,4 +1,3 @@ -# coding: utf-8 """ Neighborhood Component Analysis """ diff --git a/sklearn/neighbors/_nearest_centroid.py b/sklearn/neighbors/_nearest_centroid.py index 913cc6e9a3fee..ffa90ac1c3321 100644 --- a/sklearn/neighbors/_nearest_centroid.py +++ b/sklearn/neighbors/_nearest_centroid.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Nearest Centroid Classification """ diff --git a/sklearn/neighbors/tests/test_nca.py b/sklearn/neighbors/tests/test_nca.py index ec0f71e4c1e9f..f6fdb343ccdf2 100644 --- a/sklearn/neighbors/tests/test_nca.py +++ b/sklearn/neighbors/tests/test_nca.py @@ -1,4 +1,3 @@ -# coding: utf-8 """ Testing for Neighborhood Component Analysis module (sklearn.neighbors.nca) """ diff --git a/sklearn/preprocessing/_discretization.py b/sklearn/preprocessing/_discretization.py index 4a92e163aed9d..478051c52c630 100644 --- a/sklearn/preprocessing/_discretization.py +++ b/sklearn/preprocessing/_discretization.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # Author: Henry Lin # Tom Dupré la Tour diff --git a/sklearn/preprocessing/tests/test_encoders.py b/sklearn/preprocessing/tests/test_encoders.py index 96bd9c2c5b9ff..a96786419816d 100644 --- a/sklearn/preprocessing/tests/test_encoders.py +++ b/sklearn/preprocessing/tests/test_encoders.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import re import numpy as np diff --git a/sklearn/random_projection.py b/sklearn/random_projection.py index 000eca478553e..c798f053dbae9 100644 --- a/sklearn/random_projection.py +++ b/sklearn/random_projection.py @@ -1,4 +1,3 @@ -# -*- coding: utf8 """Random Projection transformers. Random Projections are a simple and computationally efficient way to