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

Uploaded CPython 3.14Windows x86-64

skx-0.0.16-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (650.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.16-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (596.8 kB view details)

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

skx-0.0.16-cp314-cp314-macosx_11_0_arm64.whl (440.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.16-cp313-cp313-win_amd64.whl (364.1 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.16-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (650.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.16-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (583.6 kB view details)

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

skx-0.0.16-cp313-cp313-macosx_11_0_arm64.whl (437.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.16-cp312-cp312-win_amd64.whl (368.3 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.16-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (650.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.16-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (580.8 kB view details)

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

skx-0.0.16-cp312-cp312-macosx_11_0_arm64.whl (433.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.16-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 358.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.16-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c8d3c2d968c43b7510796bf17c9cd99b7b4932d76b2a35055a897f65b90da3ea
MD5 677fcdb77306885ba40bc52cd03c7a32
BLAKE2b-256 078e953ca5fa143353c019d76e1f4546ee43b8ba51f4dff1f4a6d0109fb4ca94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 00f83559787c24f4e8c7cafe958db430aaabd9acc24bbfcffce0b1ba1d42e984
MD5 c5da8e7011013ecd6c27b8f33bfa259b
BLAKE2b-256 bcbd4651976cbead8d50ea39f20ad84a82661d6b76062209332eb0dd0a04095f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d9cbe142060726309da78bcfbf63d777cba5f636c49ea33f9df8bbebf0bde3f2
MD5 64d159bd2401733ccf25da242953b92c
BLAKE2b-256 f1ad6141552669169fb5b916e17226f5ae39e09def9833e8dfdf48a956a63dcb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e8196587351255a2b1b317d88e3e0071613b3648391d52966f67af7a14b9d59
MD5 e6d8844739369f10e53c1be9cfae2139
BLAKE2b-256 d3093e8eaf19287f7ca473e4d932bc7abfebafe90f6fdf252acf1789219caefd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.16-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 364.1 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.16-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f9bca295649482da3fdaf71117f9054a0b2caf15024fd3ebd5ee83cf1525e465
MD5 9be84c5851b6e2d33d36e62986517163
BLAKE2b-256 6e9ed099c6c5dfedcd1ec8acf200dfbac209f62f020e0cce09a0efcfec4c77f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 53bb319c4c287cf1cf84d23e371201b2c9e8bb32365ac710f2377308a4d72a9e
MD5 1aee4a01821e71068d757d9a059a2971
BLAKE2b-256 107da4c131190a6ec856155fa2ff01c1e59e430147b7395aeb7eb977448e6bf1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c2261e766c5ca2ccbbfa32d5c2bc0a2bf6ebd9e2024f27fa939cdfec90e76ecb
MD5 edda5b41fb4564dffb58b3f626a818d2
BLAKE2b-256 6c79decf25fc5db62ec0b7daf2243500ff64605e98ff2bcbf5951b459250cf87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 073b6ed04a0b6cf5481a75064222ff46079f8e376e11f9e69b75878029db048e
MD5 7e50d9f6732c10a78edd391ee45850aa
BLAKE2b-256 424905e1a3a65a855b972d5ed31a6e0fccaa527c56c10035b1d1f195fad8b019

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.16-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 368.3 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.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f207ee82d45dfd18169173a1d16cfa08b8fe5b0de5af4a6d2ea7176404272243
MD5 2f9a9fae1a5133ade858de1253330d4c
BLAKE2b-256 1a3035925ab0e2a96a3bcea6b397eca8225d0e604a8ad7d66a41085414e89692

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7ba42465e5601a5b3fdf5a78254e7ff9c745e8e9e54a7a63cc36dfbd6e9c827c
MD5 50d8709929f6ad06b4a5cae3d0e64986
BLAKE2b-256 89845bb6e883ff5fb8e8e1f083e75154a1837ef72c5b8da5d762a5b12d3cec81

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4ff71f0c497447920cf8c984e9234137058269ce3ac65ee7b9588b69d3ac7164
MD5 51039f416146ea7b75e5249630b9719c
BLAKE2b-256 75390cf5e57b5cb4aba308e885c5c5c25fd0bef14cf2ab3df354dd99ea49b45d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b41d63fd804d1b49123e53242242fb7044890fbd88ded8eac116ff91eccbf17e
MD5 9907e73d473febdb771572acf3c2b840
BLAKE2b-256 5d975c9872926d0f98144dfc1acf0627afb783cec9b640a706dbc89ab68029ae

See more details on using hashes here.

Provenance

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