Skip to main content

scikit-learn compatible extensions.

Project description

skx

scikit-learn compatible extensions for supervised learning on tabular data.

Documentation

See docs.sk-x.org.

Requirements

  • Python >= 3.12
  • scikit-learn ~= 1.7.0
  • numpy >= 2.0, scipy >= 1.13, pandas >= 2.0

Install

pip install skx

Usage

Augmentation functions

import numpy as np
from skx.augmentation import gaussian_augment

X = np.array([[1, 2], [3, 4], [5, 6]])
y = np.array([1, 2, 3])
X_aug, y_aug, sample_weight = gaussian_augment(X, y, factor=2.0, y_std=0.1)

Augmentation meta-estimators

from sklearn.linear_model import LinearRegression
from skx.augmentation import GaussianAugmentedRegressor

reg = GaussianAugmentedRegressor(LinearRegression(), factor=10.0, y_std=0.1)
reg.fit(X, y)
pred = reg.predict([[2, 3]])

Ensembles

from sklearn.linear_model import LinearRegression
from skx.ensemble import MixtureOfExpertsRegressor

moe = MixtureOfExpertsRegressor(
    estimator=LinearRegression(), n_estimators=5, split="kmeans", n_clusters=3
)
moe.fit(X, y)
pred = moe.predict(X)

Neural network

from skx.neural_network import LinearScalingMLPRegressor

mlp = LinearScalingMLPRegressor(
    n_hidden_layers=2,
    hidden_layer_width=50,
    shrink_factor=0.5,
    max_iter=100,
)
mlp.fit(X, np.column_stack([y, y]))  # multi-output example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

skx-0.0.19-cp314-cp314-win_amd64.whl (423.7 kB view details)

Uploaded CPython 3.14Windows x86-64

skx-0.0.19-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (752.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.19-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (690.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

skx-0.0.19-cp314-cp314-macosx_11_0_arm64.whl (530.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.19-cp313-cp313-win_amd64.whl (429.4 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.19-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (750.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.19-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (676.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

skx-0.0.19-cp313-cp313-macosx_11_0_arm64.whl (525.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.19-cp312-cp312-win_amd64.whl (433.5 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (750.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.19-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (672.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

skx-0.0.19-cp312-cp312-macosx_11_0_arm64.whl (521.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file skx-0.0.19-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.19-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 423.7 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.19-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 dc4e90b7be219dccdaebedeb05fe22733744f78184e510a9933a4d74821c28b7
MD5 0b3f7838cb54a906090f43d1c0a2e989
BLAKE2b-256 8446ccacd5b12cb5daf907992f2d6d1997eb2a9e3072c590173174cbcc8ab192

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp314-cp314-win_amd64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 30ca8168967571fcc38bef94dcb3b772421dbbf7051e0db94dfd64d7199c0216
MD5 ae26e049535677dd95c3d878fd1d957a
BLAKE2b-256 5909d5c5945e80c25ecd39801520dd4f967698d13536b47d0e34ca8b1f97a8a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7fd6611ca1bd2c83f1d1bc196fb5e20d41ed43f5ef5b4cd546bbd5447cedd6ea
MD5 0b3ea5f8e22c85d0f1d8e9666fee7c4b
BLAKE2b-256 18b9cd0046fbdaa3d47787c421739e98388529f25208149b42efd7ea1a79e362

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52ec33e2ce174100bf07d45b63b6933ae85bf783694262d18295be94201e25dc
MD5 2f55b78559ee160526c51335d1ce7b52
BLAKE2b-256 cce27eb26374ec7eea126c8c295c7de7608eb3d8a425c873ab1a5b617789c946

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.19-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 429.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.19-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 af57dd8f405b059ec2bdaf77ac2fff098eb4de596ba09e408aee7d5e5e060f5a
MD5 54b483e85c6b77de8be7366bfe281fd7
BLAKE2b-256 5ca96f23123e8b1b17f5a601dcae7481e1009b8aae85e4f3912e24458fdca7a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp313-cp313-win_amd64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f1287925b8ef1f48cf10ffd2039b88b76bd00a94a7f41a555e6982597a8300a5
MD5 efe3457da6e99cdf5398544694169fe2
BLAKE2b-256 5ed476e2619c2503d2be62fd966577609bc2a86941653501f89dace468f0397d

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4fc534504d255db6c95f38ecc905f1aa233ec145119412bdd4615165fcf4f950
MD5 ff7643c4207b398ce8f6694b5885d06a
BLAKE2b-256 37e43330951f1cdb7b52d23618fcaecf9e5a28491b199a0f31615c4e07978b1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2e1d67979a94b98069751750da21ba65b0e51cc7dfed4a030696dbbc258fe41
MD5 e4fe419bc841ff23d4eb39e23dfcb916
BLAKE2b-256 2014f99a6666676d1101895706c30f2b712f9af9d6feef25c621c2dbb28a30c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.19-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 433.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dab6ffdc8e5eb054419345fcf53f64ed6dcb3858b1efed76bb05e7fc228e5e9d
MD5 8da29fccf66d23cf9e14db7c14aebc40
BLAKE2b-256 24d716684d84bacd0916023700fd98b957c2aa4fb56b758bc0f1692bffb9c3b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp312-cp312-win_amd64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f1216efa0f069544b1ea1bb9c46fe4d0dec03e239e3a8890c0c5f2471f99feae
MD5 ce57f8804f4853ecd0bcc6d188f7e1d2
BLAKE2b-256 bc651d2ff47f2b41eb020be43a216c624fa8888933cd2d0439f03683c03c227c

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d5c9370d278cae83559045787167e5468fcfc6b7cd8e7de7a5b4ed1b601a56f
MD5 dd248c1be3732e5342fa42ae2f4edb1f
BLAKE2b-256 70f998a1675c6694828c2c265efc96f548ec348c849d9c608d124b59867b0266

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skx-0.0.19-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for skx-0.0.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b81b06ef16e663435984b7b8078a50c2fa412df6beb706c220a9ee4c7aa7fc61
MD5 33c697cc67baa8ce803a4de45e0bd624
BLAKE2b-256 b33507748c0347c194d6b5ed807b451612478d1ed5bdf1a2e00be84e01cac908

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.19-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: python-package.yml on skx-org/skx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page