From b94eb95be3639e8b46850b803cf50465f6b4d4d5 Mon Sep 17 00:00:00 2001 From: TimotheeMathieu Date: Sun, 26 Feb 2023 09:05:38 +0100 Subject: [PATCH 1/3] remove circleci --- .circleci/config.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 2435e72b..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 2 - -jobs: - lint: - docker: - - image: circleci/python:3.7.6 - steps: - - checkout - - run: - command: | - sudo python3 -m pip install black flake8 - - run: - command: | - black --check examples sklearn_extra *py - # ensure there is no unused imports with flake8 - flake8 - -workflows: - version: 2 - build-doc-and-deploy: - jobs: - - lint From 88854b0276e84d9a4d87d375567265609202fc34 Mon Sep 17 00:00:00 2001 From: TimotheeMathieu Date: Sun, 26 Feb 2023 09:12:39 +0100 Subject: [PATCH 2/3] update pre-commit --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87caceca..d29162b8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,16 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.4.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 23.1.0 hooks: - id: black -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.0 +- repo: https://github.com/pycqa/flake8 + rev: 6.0.0 hooks: - id: flake8 types: [file, python] From c25c925489054cd8dae3f598b011472864543a7f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 26 Feb 2023 08:12:02 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .coveragerc | 2 +- doc/docs.md | 3 +-- doc/index.rst | 1 - doc/modules/kernel_approximation.rst | 12 ++++++------ 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.coveragerc b/.coveragerc index 2de8587e..ad2f95fe 100644 --- a/.coveragerc +++ b/.coveragerc @@ -18,4 +18,4 @@ exclude_lines = if 0: if __name__ == .__main__.: if self.verbose: -show_missing = True \ No newline at end of file +show_missing = True diff --git a/doc/docs.md b/doc/docs.md index a0047413..2aa121ca 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -5,6 +5,5 @@ - scikit-learn(>=0.21) - Cython (>0.28) ### User Installation: -You can install scikit-learn-extra using this command: +You can install scikit-learn-extra using this command: `pip install https://github.com/scikit-learn-contrib/scikit-learn-extra/archive/master.zip` - diff --git a/doc/index.rst b/doc/index.rst index 3c9f84fa..db4e6cc1 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -28,4 +28,3 @@ scikit-learn-extra is a Python module for machine learning that extends scikit-l contributing changelog - diff --git a/doc/modules/kernel_approximation.rst b/doc/modules/kernel_approximation.rst index b8ea39e8..b234d691 100644 --- a/doc/modules/kernel_approximation.rst +++ b/doc/modules/kernel_approximation.rst @@ -6,8 +6,8 @@ Kernel map approximation for faster kernel methods .. currentmodule:: sklearn_extra.kernel_approximation -Kernel methods, which are among the most flexible and influential tools in -machine learning with applications in virtually all areas of the field, rely +Kernel methods, which are among the most flexible and influential tools in +machine learning with applications in virtually all areas of the field, rely on high-dimensional feature spaces in order to construct powerfull classifiers or regressors or clustering algorithms. The main drawback of kernel methods is their prohibitive computational complexity. Both spatial and temporal complexity @@ -15,20 +15,20 @@ is their prohibitive computational complexity. Both spatial and temporal complex One of the popular way to improve the computational scalability of kernel methods is to approximate the feature map impicit behind the kernel method. In practice, -this means that we will compute a low dimensional approximation of the +this means that we will compute a low dimensional approximation of the the otherwise high-dimensional embedding used to define the kernel method. :class:`Fastfood` approximates feature map of an RBF kernel by Monte Carlo approximation of its Fourier transform. -Fastfood replaces the random matrix of Random Kitchen Sinks +Fastfood replaces the random matrix of Random Kitchen Sinks (`RBFSampler `_) with an approximation that uses the Walsh-Hadamard transformation to gain significant speed and storage advantages. The computational complexity for mapping a single example is O(n_components log d). The space complexity is -O(n_components). +O(n_components). See `scikit-learn User-guide `_ for more general informations on kernel approximations. -See also :class:`EigenProRegressor ` and :class:`EigenProClassifier ` for another +See also :class:`EigenProRegressor ` and :class:`EigenProClassifier ` for another way to compute fast kernel methods algorithms.