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

Uploaded CPython 3.14Windows x86-64

skx-0.0.8-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (586.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.8-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (537.3 kB view details)

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

skx-0.0.8-cp314-cp314-macosx_11_0_arm64.whl (380.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.8-cp313-cp313-win_amd64.whl (321.3 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (586.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.8-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (526.9 kB view details)

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

skx-0.0.8-cp313-cp313-macosx_11_0_arm64.whl (377.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.8-cp312-cp312-win_amd64.whl (322.2 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (586.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.8-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (524.5 kB view details)

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

skx-0.0.8-cp312-cp312-macosx_11_0_arm64.whl (374.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.8-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 319.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.8-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 59909a6c1ec55c5e8b6f691d647d0605697f5c20e40a25a39b101d02a1041ffe
MD5 52cbb7046091d93d261f6e7e1606c72a
BLAKE2b-256 f88e8d748b5011b0f94c373f981b69c09dc421e79545e66225fe2d73aa506be0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.8-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b1e07e991f475603eedc204108fff66d4de692743c9a07efb15716160b8ba483
MD5 bdbe674a70b10725475417f621c3a233
BLAKE2b-256 2929efa17ecb33b7e825ff8a1ffc0c6c68b47a6f349f48d3f141e0ae8847f875

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.8-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1b1d2bf5063dcb7fb73908d0a68a2dafbc56fa5aa767d3550373040b57b54cf8
MD5 826f0f2bc2b80f297aa84fc60a977c15
BLAKE2b-256 0d545252006f043f64e50612f4eef6a9489f6b51b95901c773363b1fdc6c32e7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.8-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 380.4 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.8-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31dc3fe26a80d3b7e572f90a8ef8eaa495256917180b0289bdab8233d78c3a58
MD5 3ab8f9375c795a5e84043ecbe0bd80a4
BLAKE2b-256 db82a01c6a7fd5ee7a99346362ff0bad83400efd8a402111578873984b31c880

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.8-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 321.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.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ed71c18560d48402768066c7132785ad1e84a869ec7766fc132ddab7a51483b8
MD5 a507d3b319077f76831cb7a0a8cee48a
BLAKE2b-256 703aee2ba741e66d39debcec4e74e707f8024f8ce7213ff38d3c9911c814fe6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e0c459f4d75e4f30c16c11d8d7b1d1152dd22d4a0c043178ef20ef0e0c36b9fc
MD5 7a09e125e9aa6d0a17e0eda20c3528ee
BLAKE2b-256 3c1bc5b71502e23d2a46a1b4df175fed1964dd01a71b17c4f8a296dd22d36e30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.8-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f40515ef2294171ea84409b8abf4bc29d33bfe23db107d3747955323aef47242
MD5 76dd0b71f88a18ee8706f4aa820a81ce
BLAKE2b-256 03bd056a8600b4add490891a2273bbd0a54d6d5314cdc45b138b27a38c3d7064

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.8-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 377.7 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 066370abf71457af314b92ecd8f94957b8526aa8847558921bc4226341d8a4e6
MD5 4c9d78c13d05b773eb61ca76e03d06eb
BLAKE2b-256 036a9e9e0ff3fcb79b608e273e33ca7527e3ae16b70093713e1aac2b6667e221

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 322.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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6d82e3ac62865d87eeafdcbe68255a88d58a10d4c6ff6f0dcaebcbf99d798c8
MD5 69d47e8fc1641fe4c5fd91eaa0000227
BLAKE2b-256 3067640f8b4bf486f41223edd3cfda6d40433bbc7eb8e19e2e18e91092490b28

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4fc65f1944ac10c49bb8165f718bc0a1c08f5c3e44234931b89d59c5eeb898c6
MD5 7a228eca7eeef2c6b36bd4aabe843cc4
BLAKE2b-256 0a21068f33600391e0986dd64600abbeb6bd35c648565f9fb067a4d5aba825bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.8-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3c0b723dacfe8e8abfde24c1d03ed42bb80757901150568e83a39665739f423d
MD5 acd5f779902381520ab21334ee8020c3
BLAKE2b-256 c15539106c1cac1e07c3bb72aa6c39f5cec2b942d64844fae0ac5f94c694fc9c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.8-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 374.1 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skx-0.0.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 649e0f6e2e1d509be60a74831c7ba3afbbb2d8eea52b553b27b184a419a2841c
MD5 ff0a5d450576540c4c148cffaab037ad
BLAKE2b-256 979fca1b11062aa95b1de6e1d848d85280877bc5d239b71b115a49389f26429d

See more details on using hashes here.

Provenance

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