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

Uploaded CPython 3.14Windows x86-64

skx-0.0.22-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (752.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.22-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (689.9 kB view details)

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

skx-0.0.22-cp314-cp314-macosx_11_0_arm64.whl (518.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.22-cp313-cp313-win_amd64.whl (429.2 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.22-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (751.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.22-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.22-cp313-cp313-macosx_11_0_arm64.whl (525.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.22-cp312-cp312-win_amd64.whl (433.3 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.22-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (751.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.22-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.22-cp312-cp312-macosx_11_0_arm64.whl (521.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.22-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 424.0 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.22-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 35558245561532ddae77bb322d18b1b0517a93b8c997e0b49369d01612ee841b
MD5 14eea4913352cf2f0c70c47563086455
BLAKE2b-256 4a353ea2dde3f9ab4f2862c9d142dd47a5051472c1ccc62dc88410eca18d8952

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5debe208a6af5f28f87680436bc92d09deafebfa2d7e2a468c4627294e167e6e
MD5 4dbb9595c5a1dbf924d8d209ad932afe
BLAKE2b-256 52826e568ba2c9eb8010497cf96da1b4452e87f14408c15f024e21f04c39260f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a46d336e1bef53aefceee0593fa0b564fbade38831cdc7469c313cb9475d7f59
MD5 4d177ef6fb7a537400954e0b3c6f55da
BLAKE2b-256 61c052f79a8ec9ce58c8c8a2944a1120be60c583776f923bf0e188946c16cf6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b4c6670dde75b286daad173b57fd7cc8a682349328ffd0a23e57f551c23c070
MD5 a4140ec09d080e9d759ce3a0be6cd63a
BLAKE2b-256 2efab1411f3bffc25521c2cfb973d6dcb4eed8b5c6538ed645111e896ffc7c29

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.22-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 429.2 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.22-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cc531735ce28afb1bf414099b45fd746df3cef839c2b65a4171998d86f0db324
MD5 040009876b1e246f178a6084d5d6bdec
BLAKE2b-256 f98cdbbed8227ea194b84972ae1b6c41e452a93e8f2d0428f6e97127b082a29b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8a83bba0db6e6466774e9c4d8a952dab891bd22e2ea50456af35496fc162c998
MD5 6e2ebbf562f424cbd2c68ad74882ad81
BLAKE2b-256 fd5a15991d692dbc10b966931079acf7c11f5b85464ac5fcc66f01d31f052548

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 12babb0bdc1a2f8c96c0eecbf0235d2115f9cba09eb269a6ab36d0e52a1e2562
MD5 19b29187fa60386e29a9768cdb55d332
BLAKE2b-256 6fc503becf61447776d7333a4314bc7e92dce9c39491e020671617f9bbd6a923

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a7aa1f1a59e157f69fab672d201b4e50754ebca255ffd041b3310b9e736c112
MD5 055a3dff2b176b5ed026614f169043e2
BLAKE2b-256 08cce760956cea9c30f8bf1a5f658d7401b009e81d2f2398afa294fede59273b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 433.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.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33a8b6f8f2f0e066eb9b2d24f06c82ca5495af3f4ab2b96c0f77a0c91b21b461
MD5 5f1936157312a24ae09ff8aba00143aa
BLAKE2b-256 59c574be4c51adf3091d44ff87eeb21a3e192bdad0b8180347e9ccd4b0a4a316

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 621da17d741b0df27bc7fe32f06e5669b4abc2ba6d0ebf8c5a091e0dc5686295
MD5 8a6906744640cb9f7e203f4dd68f20a2
BLAKE2b-256 ba8f67a5ff835bcebc1c5f079e332992474c776b567b1c09528628f7340d6aa8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 219dfea3f582b49e4206a5219abad3aedfca5ef09498bd726ead4847f51c0646
MD5 c2407daedc629337402a6df0f3a33a79
BLAKE2b-256 d1ac917a30559e19bf3676d52cbf4d3df814dca916beb765c5a784ff114d76f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a0af77f99845a007c83477d2c2d2ea578cdca8be429735e034395b346debe57
MD5 5add7facb08aaaf05741c89da6ede885
BLAKE2b-256 b03d09d929c751fa4db6307a7d68a692d73b0852150c25ce940867e47ea093e1

See more details on using hashes here.

Provenance

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