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.5-cp314-cp314-win_amd64.whl (308.9 kB view details)

Uploaded CPython 3.14Windows x86-64

skx-0.0.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (568.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (520.9 kB view details)

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

skx-0.0.5-cp314-cp314-macosx_11_0_arm64.whl (360.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.5-cp313-cp313-win_amd64.whl (310.7 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (568.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (509.0 kB view details)

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

skx-0.0.5-cp313-cp313-macosx_11_0_arm64.whl (358.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.5-cp312-cp312-win_amd64.whl (312.0 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (568.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (506.8 kB view details)

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

skx-0.0.5-cp312-cp312-macosx_11_0_arm64.whl (355.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.5-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 308.9 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.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d549f7e252ed943467faa9a28f4fbaf2f341aaf5ef558bc12f1c1dae89f0823f
MD5 4d692970cd90be38c513e5737abdb88d
BLAKE2b-256 590d51712e4019e36a1f216b02150800244450606c3d62afd40c229c103706b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for skx-0.0.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ccb6cbeb63e2e424e63a57f26204fbbaf5bb5b37586cb8cfaf201dafa3c18baa
MD5 b91282c1c6777af2a424da906cfc6360
BLAKE2b-256 3c5fa67caf751e49edba7cbc9d18fd33144f9a8ac880ba6c6486697e2d809635

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for skx-0.0.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3ca89a6ab9e192945a32ae182ad3ffa13c214fc0fa5ae869a260e08c492bf8aa
MD5 8e02d6025ea929e2c3245b3385587eac
BLAKE2b-256 e3835e6bf1e7fd5d591c12e3e9e7d5f7ebed811afff0322b538717af351efd2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: skx-0.0.5-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 360.7 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec9aa6b40689eb4f89318ed16cde831732c7c1d3d6b03f968d9faa47355b3d4b
MD5 aa7296af8c8246f519eafac20b9852f1
BLAKE2b-256 2cb62f861a4757a9cb47246ec8d49168c64de0339a78e6b1cef159391c6b9b7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 310.7 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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 752b0ad9bd08a5bb65b7154038345b631daf2bbe3115c722647a091f94a67225
MD5 7b6f1909d024cfa609f1bfa369ce22ef
BLAKE2b-256 e179078a6b51febe7402bf79473e378f74b29c64fc2ccbfe768e89e810525cfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for skx-0.0.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 df7cf65b4b377ac4eaaec378aa3a26e70836aa15c19d9dad13ea32894705de6b
MD5 106a608163ebccfccd3462c710efa522
BLAKE2b-256 6cbd11216f1eea3f969c87f6941e8d69d07563710bd86c35506470243dbf5888

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for skx-0.0.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c772ad736e735b80a0f50adfbc9d691a46e5fd1f90ec780a8c9a20f1fac0cfe8
MD5 91d9893024e5a49e97b00898604c8414
BLAKE2b-256 027eeac5b136aedd955b4efd104dfad486d4f4c3cd69aeb4c46165b653b6af4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: skx-0.0.5-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 358.4 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3eba2bcfd988bed0c81963855cd0eb419186dc92d0aad049df689e886679f894
MD5 e97da28ae119122234cb014e2dfdb83b
BLAKE2b-256 275acd1d4b7f0739037fa5434cab95fb4ee7714a790fdd31074522e4c14e8fc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 312.0 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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e23abcd266c9e197c934d01bd8b8996b7e8fd79ac46160e2f58f2f1d11ee07b0
MD5 6d905b56ba27815a96cc806a8a7f8c04
BLAKE2b-256 4e0ee7a3ae55a9e2b666380dd0a6b96994e3fc51e0a59f9b4d8f226bd757a010

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for skx-0.0.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 80445d72a6d1d698ba224e07076a31e0c6c55716c0eddca3f472ff4e9fcb452a
MD5 7e6766774b549b5618e701964074b91e
BLAKE2b-256 1a7d520d0d9183aab088a43bf906fab656a04d84ba06b7f9ee268c13c48c6fbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for skx-0.0.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4c7434056cb7d4c8460af4c41165d65c96db1ed82f877c4ee73c9e90173da0f1
MD5 cbff1f56afb4b0e3fe14954d7df03d55
BLAKE2b-256 77090ff32f9573377e824b102621060ee71570a7e6429cc46ae1e8da8181c46a

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: skx-0.0.5-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 355.8 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21a01dcaaa1a97f26083e4f902b1d03d196937a7226e574cce8a6b0a21125d44
MD5 2de3c318c5a8733332e76344ea8c8634
BLAKE2b-256 9002ca13c42a74aab9c7ae3d39e000f7020347a2a0c1ea4db7019495ab08909c

See more details on using hashes here.

Provenance

The following attestation bundles were made for skx-0.0.5-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