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

Uploaded CPython 3.14Windows x86-64

skx-0.0.18-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (752.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.18-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (690.2 kB view details)

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

skx-0.0.18-cp314-cp314-macosx_11_0_arm64.whl (530.5 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.18-cp313-cp313-win_amd64.whl (429.3 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.18-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (751.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.18-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.18-cp313-cp313-macosx_11_0_arm64.whl (525.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.18-cp312-cp312-win_amd64.whl (433.5 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.18-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (750.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.18-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (672.3 kB view details)

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

skx-0.0.18-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.18-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: skx-0.0.18-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 423.6 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.18-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 0f357ad000be7791301ef5e1bd0301b10aa0cac4478a8f92ca7d768e726e5eeb
MD5 be028c6d28fb5926a821bc4a485b191b
BLAKE2b-256 c8dbdc8cb77d1a6c61936c07dd99696032d00fdd2b902ec15118e6e20cebf47e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c70600703a3d68a6fd97f0dd4b83c9d060bdee34946a9d8004dfe825fd015aa2
MD5 d73729d7c77f34038cb2cee0a5c659cb
BLAKE2b-256 654fc7463d731d2de1a96dda211584abac4ce696f6079c7bb97febc25ea508df

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c18d357979c7d10acb35bd8ada17f77c6bf8f387812040def3b0cd41288e9d47
MD5 68d5586b284a611adeb4cc7f7ca52024
BLAKE2b-256 73d8e50bfd282ddb6ad2de6dc783fa3e942bc3fa01f8b11ccddd8964bc4272a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d0f9dc257d1316dd94648d8aee2fb22310766c352b394c02b8532f852701e22
MD5 c480bc5c8193d13f7bd6dde387fae461
BLAKE2b-256 5cd05a8e1a0cbc63640af573bac7fb0b5ab10337bf084f6ab6d8d18e1e91259b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.18-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 429.3 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.18-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2dabddfb0b29b04a114b3026a4b95ab3ce0037d3da319085ee3414baa8894146
MD5 17a01f69bba2512319099571c0697616
BLAKE2b-256 42607ef399725f01ceeaed8c140d4e3c7d6b78b7b9939566abc482e21d6f9e80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d76888cd3d4650167cea85dc84ffce68b5211b162994965ce81c377dbbb597e8
MD5 5f0e4da11e3987c469aaf22488c6a59e
BLAKE2b-256 36f50eda2ce3ea3e377587cae1428519b3cbef7f9ddf1945a0a9bcecceef96c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cdd236f062854a6eb9ec7195546d01d8769c0660f8949f70184738537acba80b
MD5 133113a4ab51ea88ea312b092afa44cb
BLAKE2b-256 3ce47c637146aa28e2960797bccbd7e0788eedb3a1ddc6eac222c8303d6e2ba0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b4a06f1e5ef204e8acedba3254ed819f92e6866c54888ac999a1ad35ac7eb9c
MD5 ec7eab25a1ad01436708de7e93c34742
BLAKE2b-256 7e64bca2d433fdf4c013b8ad734281eb98bdca51d04d775f103c0bbc5d56f3a4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.18-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 433.5 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.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8a299101fedd3b51d08472931d77aee046a2a56f354470160a60fce68ce6cbd
MD5 37a71b331765a59290413214770ddfd7
BLAKE2b-256 a8ee8b9e60a8a545b61a4f1348afa1b3d6bbefb0507c9a30aed98a631857ec77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 807f0deeec1aa5725cb50541d9f638a4439b23f750a1a87b217a729de2b95bf2
MD5 dbcd49e1c9d62632e96ae8c124138b33
BLAKE2b-256 55e75422b6d28bc856ea2bc91c6bcb368a2048bd67494ed28989a31845751c88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8918d357f56667bb58e066c0b2b386b15bb81e94e62bec338066a653835a1271
MD5 83df0e7eedf94996ded836cfd15816b4
BLAKE2b-256 dfd5a7b45e03338f97486919a9212dcea7fe6d70d35c17fbb70251b1a0389c6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fc8e1a3b464e013c7aefb379e12e0d6fd64d6eaee1230874de876b054b270a0
MD5 9be439306c6fd2ab70cfc1b694847492
BLAKE2b-256 82768074411b2ea84dcc8141f378b6c3733a5f60efdce3f636e1912f977e8f34

See more details on using hashes here.

Provenance

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