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

Uploaded CPython 3.14Windows x86-64

skx-0.0.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (572.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (523.9 kB view details)

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

skx-0.0.6-cp314-cp314-macosx_11_0_arm64.whl (362.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.6-cp313-cp313-win_amd64.whl (312.5 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (571.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (513.5 kB view details)

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

skx-0.0.6-cp313-cp313-macosx_11_0_arm64.whl (360.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.6-cp312-cp312-win_amd64.whl (313.8 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (572.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (510.4 kB view details)

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

skx-0.0.6-cp312-cp312-macosx_11_0_arm64.whl (357.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.6-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 310.7 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.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b34d619063d588f1853b29a470489ada62dfeb9b8b6bc1bc812aaad8c8d579e1
MD5 f62441973cbe0dcdd25a297de4bfdf89
BLAKE2b-256 8d61ca090425c14de24ea89d60445a4ce00d0f28725e0faea97a043ee393afb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0801a3974aca01582fc543ba7722e5f54aa82c3136a34c98b30bbf31e03fbe46
MD5 08e344ea8f8b63d21ed5d05b415180be
BLAKE2b-256 28d8f1bfa9a297a5c9a9e70bc03b547ac8eb66208f56d7d2abf094a8967d13c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2977a042ce0c9cdf7b89f23858adbc4923d72828fde9d62bc29b74fef33b6bf7
MD5 26573396db0204f75c0691041a30621a
BLAKE2b-256 e0214731b5341acd47f1f2849e13b729503323180e126c36c953d8024dc8054b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.6-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 362.3 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.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 811d2deab2a878ac511661bbad4b40fa18462032ec19572dcbcbf0992c11ea55
MD5 419c648a68b8716df7775e993be5cc5e
BLAKE2b-256 53aa4dc103cfbfb0a2a704ef22c0bfdd667a7d6cae890e589fc231c5bd5a321f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 312.5 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.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a1fded575dd31f646b28a62da64626afcad5169221a63d3535fb304153ec91f3
MD5 86d4d7cea319ac9add382658f9610d4b
BLAKE2b-256 98bdf3bf54ff38461015e0e2d5b7414437b2d07513acae78375c545db2d7c854

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b12504660885ec8813a21508c8e831c6bfc4bacc8d7a0a5e5ed101bbe0a75665
MD5 e33a5f6d62b5b686b3fd3ca0f82ab213
BLAKE2b-256 b84ddfb13dc1540b3b3f3b3bdc0e4999d0de390d965f43e73d24721305da4bb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c3a7ab404041cfcb7d91eea0e25eb45aa168133651a68d9560644ab32ffe66e9
MD5 0f495c42e6b67bdda5194b348c51f9f8
BLAKE2b-256 30802d38241604f3dd0885f42a88fabb298be82da0608f5b61283538ecac7ea1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.6-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 360.4 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.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af7277ea7242cc0015d1bfce372dfb4a7d08026db3035584de0b6f636dbff560
MD5 75bdba7fb3028c6314c2fed8965936f1
BLAKE2b-256 ef5e32c57ca413f407ebdc6188882545794406d0f86ed27cd75696427d9a49f8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 313.8 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cc129ef994c59ba408f9a4262d3361547f3e0cf1213556038361331dddabbac9
MD5 e0e94545e6a52bd3e01ae55b06f96326
BLAKE2b-256 240cbe8a567f0e214eeb91abcaf516cd9bfe182b5dc43862e77b064b9f1b48a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 9976f4f7a3f7d4335cb33b5c5b3162fe577cde0770c36eac9c42b01e8c53eb7d
MD5 bb615d135d070becd220a9c81e88894b
BLAKE2b-256 d17e302f8fe480b62badc872690c46fe14f5b2c176804d7b55af30e5025926c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 231355345282bb83228444d81c55212ae84ea14584be0594694e2cfc759fab10
MD5 690d8bb6d64a4d4b71b065620d86c22c
BLAKE2b-256 15e25501a38595278cfe1c078c11dfbc8bcbc6c26c35eac1fc6add1f54e5029f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.6-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 357.3 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.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 495b46f406ca2ec87675696b25d300fc51a177e4f60eb8de0adb8d4154f8e73a
MD5 78f78668a6b6a69863b0d151da9ef979
BLAKE2b-256 19e419b6c59aaa7f390c73db408417c3dfa97e8344ce88b0b14acb71fbf7d8a2

See more details on using hashes here.

Provenance

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