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

Uploaded CPython 3.14Windows x86-64

skx-0.0.21-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (751.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.21-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (689.6 kB view details)

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

skx-0.0.21-cp314-cp314-macosx_11_0_arm64.whl (530.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.21-cp313-cp313-win_amd64.whl (429.1 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.21-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (750.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.21-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (676.1 kB view details)

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

skx-0.0.21-cp313-cp313-macosx_11_0_arm64.whl (524.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.21-cp312-cp312-win_amd64.whl (433.2 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.21-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (750.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.21-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (671.7 kB view details)

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

skx-0.0.21-cp312-cp312-macosx_11_0_arm64.whl (520.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.21-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 423.5 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.21-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8dc98bcc0668d2d849eb2e893b941a582ce78057f7ece427147389c4d51b81bd
MD5 65aba0abdff20f4c38d8c83a16ea18b3
BLAKE2b-256 8dbcf436fb2bfbba09674f8d3df9ca5a0200ada9075e5e687a858d2d98f4e82c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f8cddd9a934c9e9d6be241d25bf52788c8c8a7dabe0ce1f0acffb10795215e3f
MD5 3e72624f6cb48b6736aa46e9ea4a2b51
BLAKE2b-256 748c4543e197a76d7a695a2f3ca83bcd0549d750a0028f4f8b3c04650663fda2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 60dd636df22b853028d3ddbd35dac6ca5fb5ac94df20c32a5f5832b6a32660ab
MD5 04044f8ac7289b809f58ed5167ba634a
BLAKE2b-256 b28f4eb04ed106b808e0bedff37bd7e03634f3f82b796e1368956c91158c6e4d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1be13afceef6706fafec05b130ed6b38133f215fcbd0c49cf734ccc4eec5720
MD5 09194827dbacb5674d5492d3c7cb2e4f
BLAKE2b-256 15cfc096a32b5effde040ec412b4713ddbd5f6f543eaf01cfc193ad39413f434

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.21-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 429.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.21-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7be3b460f05a4d9121d821befc2c36bc74bbe9baccd9a910870c2041a131a0ac
MD5 24029d114bc93826d8a2c009cfbb9222
BLAKE2b-256 6ac2166546ca2d4f868cb1c778586671c748f9f33f44ffab4340e40e097fd105

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cef2a7674e2c81cecc9086da721f06569069fe5d8c513616006853d9480cb442
MD5 24e126913126f6fa426a4a9269630057
BLAKE2b-256 f6e23ea1a298af36a90a7aa06d01543b16d04b6943d751efe8ed4c55ab58494a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5630fb77e342a1a3d2c21eda78ec4f1b8ed0bd967af2616c12444bd31de757a0
MD5 6062fe54361b9bdb4c73c7f1617f110b
BLAKE2b-256 2999c9d4c12733b9f8f4fa2656e6c2f8a6ed789dda45cf35b0ef42bf3a41f764

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fd61aa586df23deea2b456bf6a2ff48db3599a78755e9cc9e582bacbe3c1f42
MD5 b250322e5ad40c2fbad47ddda25ab41c
BLAKE2b-256 e8f859d5ed822ae75fffe2d81be8cace10993e50670c0530cefdd59ed718564b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.21-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 433.2 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.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95b6aa4ba2a9737714122b890a5e59099d267a50c6fe55378499f2e258b9b73a
MD5 c3a6e624bf05537a81a0cdf716fb15e9
BLAKE2b-256 661a6aec5f81b89abc526d3af77b89b821556ddf0a4a3c4fdff9cf0a95f74209

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 443d968beb21a46e07ddfcfe75db0ef76b54c3d371a3920391cb4f8db43f1faf
MD5 f7e93a3940ebd67c758516c6d87de908
BLAKE2b-256 161ea10702e4057f1c5e1a82793f76cbe7b0b35bcc5e325d33455c40d08a15b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 45d9736fb03c09458c53866c8f939b23a7a6bcfeb247f15ff09bacd45bfeb87f
MD5 3410f26deced1992a4999df8f630870a
BLAKE2b-256 ead43d0c580610ebf22bc79dfcffdde0d941522c28bb18cee50e42805dfde5e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.21-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b856665542084cea5a8e9466e9025ace1592c9d87d290d92aaed25d9989acc7
MD5 3a4be71b51c743ee52149c0f1183f68d
BLAKE2b-256 136583593b1a5d149ba21035a48c2b1f3261fc81ba59f48a8bde00c2ecf08406

See more details on using hashes here.

Provenance

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