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

Uploaded CPython 3.14Windows x86-64

skx-0.0.20-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (752.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.20-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (690.1 kB view details)

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

skx-0.0.20-cp314-cp314-macosx_11_0_arm64.whl (530.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

skx-0.0.20-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.20-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (676.7 kB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.20-cp312-cp312-win_amd64.whl (433.7 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.20-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (751.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.20-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (672.4 kB view details)

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

skx-0.0.20-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.20-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.20-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 423.8 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.20-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7e33fb2c72b10950030ee97623c2a2c4b9ed79814801e9c0e3b00bad67107baf
MD5 062d16ebcc3549e055651412690c4201
BLAKE2b-256 722d49d17dc679597be4ec6084a663bbcf3a968c72dae1f1c9305c727ee06074

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8eb123af18f80bb5a39633d0434a754b36c333435e3a21734d7ae13386259640
MD5 6154fbf1c4fa544b436fa1c70d6c2f16
BLAKE2b-256 43c0db4ce6b83cef366f0816e15afebefbd29598f57497883466cef334618e9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fc48776343c03d6f389f22f0bafd0fb7c1fba0d70599331fbca1f4026018f585
MD5 30eac6802ba3eec3eb0a738c25accc68
BLAKE2b-256 2c2e141fbf75f051c38008d5586a6e577b6f281660ac12da6ba6983991e96d1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1652d048e97782d5df5e881911d80143a22a1bccf944d7ab602181a1a7610dd6
MD5 1ed706731ac64ecab6e50a1d6ec44edc
BLAKE2b-256 be3fae0672f3cf39dadf71abed6d7bdf995f65673c022fde890fd625e1344737

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.20-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.20-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a40865a822dec899ac5b1746185772dd9f6beebcd01084b6bf519abb050b84c
MD5 45561da312b5a43b01f3a1735250968e
BLAKE2b-256 93d2e69e5ed2d4ec0c5aa65b8ef3ee1d09baf289d2bea5b44ba18b0ecb64ca07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2cf2b01113015695b8ec28895f1f119ab69a2b425f56522819a1f2c384720f60
MD5 e31c5fc98a9b1b789191b229bac0b003
BLAKE2b-256 0b0184802904b666fbdffb8e67c5ad082793ef926aa7ee3a17affff36a781d84

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1b6c2778f0e79bdf51a3a9b291c48820b3f0a1eb71999259d405ac050bcda8bc
MD5 489eeffc2b52664c4f54358b4a0a88d0
BLAKE2b-256 476bc9537bbd71e85703932536c2345d231ce194312d14fb9341a20edb232a51

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30a68a2ec206624a1a6495c38dfd8559b4f58f6a1723ac916b659dc172438c87
MD5 8cf70e04e2246db3120f99f4d919d867
BLAKE2b-256 46dc739070863b11e86980ffed9b90776b41fd375151362992e34843a7870740

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.20-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 433.7 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.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 567c5489a6b64ac89e28ae77c4d0855b297d709ef20ebec9415a8d6866b724ac
MD5 9c5e94900721a2300fbda3e2ff81170e
BLAKE2b-256 37c5c7c561326ecade6bc02d567ec51648808d95823b3c090acf64dbd519c52a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0db6154ae235c385ccf90482f6d1e7593f2bece33b2c1460457b2d04958ee447
MD5 3481883c4f61ee51d6cdd4966ca09032
BLAKE2b-256 465eef75f3ba3964cae391aa6eb211014f8ac9d4f080ed4e31d3ca4588698891

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e6da8e987ca04272ed85273ffdd453cf8fd40a4c347dc35da4bb1517e3d4c50d
MD5 ddf530ffe5dcea890b3b52c2b0474532
BLAKE2b-256 ea9afc5c315e6e3c28569df9d9059eaea2b26ca8d77e3ceae56cc419a40361c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c8fcedd27bd6d09417b8242715c32b87a111eb90614ea07ae5ac064219647f5
MD5 19e4be2ded998c301041b1d2303f44f4
BLAKE2b-256 7660bbb499d9ff445a04ce0ecbb7809ec2833a611d37b4208ae6b140c7280852

See more details on using hashes here.

Provenance

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