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

Uploaded CPython 3.14Windows x86-64

skx-0.0.9-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (589.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.9-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (538.7 kB view details)

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

skx-0.0.9-cp314-cp314-macosx_11_0_arm64.whl (382.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.9-cp313-cp313-win_amd64.whl (322.5 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (587.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (528.7 kB view details)

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

skx-0.0.9-cp313-cp313-macosx_11_0_arm64.whl (378.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.9-cp312-cp312-win_amd64.whl (323.5 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (589.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (526.1 kB view details)

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

skx-0.0.9-cp312-cp312-macosx_11_0_arm64.whl (375.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.9-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 320.5 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.9-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d21826ec415373bdcd174f2b1e2e9788aa361c6d3c56cee5d7bac958d172ec94
MD5 dc01b6d3bd0f090d9fbda01d0d620cb0
BLAKE2b-256 f6e8b3926af7fef638e5787b4a7892987295271db6269af9d001a8a9b9f505a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.9-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 068a377af4d165205649bb73fbad0c6d4c41ad85933ea7bc44ee3635dbe07170
MD5 eba9b3487146a31e25abf8b20014c2ea
BLAKE2b-256 425e6a95b89b2f276abbd1db8677cce1b49f89dfa514757c734b3b07bbfd6201

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.9-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 30029c5985cfdbd587044cf7222292c4e72ade5f264ea1c9d35c236e095e27ea
MD5 2b5a6b7c102f977dbf19717b92d40b35
BLAKE2b-256 76e10b25f9fbae5f1a5eee5a5916d6902501d3ae585920c8907a67389af8ea4f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.9-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 382.2 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.9-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 479434136ab2d1d54a1e3cde5f0575f09876a52b9190b66c8d3dc26fdf74c0ea
MD5 00340c76e4647dfb5f98d50cf3afae50
BLAKE2b-256 1876620ff72a546026460e01325c3f7f07daf3bad0e1145d16c79397a3b3a0d6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.9-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 322.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.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5e4b48d7f1192cd3cf8975918d9ea4a853e8c30d3f5ba5ce0847b30a9d497e9a
MD5 4d066ed86d05133279940020babcce96
BLAKE2b-256 e003fd571e3f93277ecf1e77d94035cb31e43446d496875940aa00bedcc63a4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 95efba9807f01f2cef6cf9b837ade10b4998bb531c6bb8465c374fbe087c6d20
MD5 f0972385b961f98d615108453c73780c
BLAKE2b-256 a875c58e5c92fd707af56788623a412ed32321e6233039c1eeb3d8ec976c1a39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 30f08f291227d8d28f99f6fa283337bbaab02db8d1a9d6b5e046381f2ac348d9
MD5 a916289545b508ea8a9c73076f193dff
BLAKE2b-256 093943dfe59225dc985671eb465f42bc9cc0eb3fc9eb7775ee47d7a1195def9d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.9-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 378.6 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.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49a710e1dd5c25180343cce726bf09fe70e4ba96d0f66814a0ffc8671f2a55da
MD5 8ed800f984dd6771bd6b4415ba3f86e5
BLAKE2b-256 72c67fd45df529b81cbcd440e9bacffbf9108bb2ed1542ab5d1c928ae86b6f0f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 323.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.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7c34f9b1cdb90e25147b2d47cf25fbe29c48b77789551cb80847c0ef0bbf005e
MD5 2ce32a541e0b0130f71d3a78daa74928
BLAKE2b-256 3c8971e97fdb3c9af3a5d9aea8d1f12d259dc4b75eb8c84b2985f570b2d89f5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0eeda63d481e3b1be7af755652bece482bf84c9ad9c1e113f026992066091c99
MD5 e576f6fb18d5e0ed451be1e5684e573e
BLAKE2b-256 cc310304ba6ca6e4476d7b2981125fcc7da3f52130a50f603dc8f613b84ff86a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f4cfa66ed4e90bb8b871c48737b053d44076d149b037ea36adfa45140e6f77e7
MD5 01ffda092727be1f0850d21c39b1c6ef
BLAKE2b-256 442110d6196c66e4cabf60e348e8a0ee11bb068403020c7531c5221d208cc9bd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.9-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 375.5 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.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 858d130163183acd98e51f61fc948585c249af728300f0aa2d29664e12097b42
MD5 d0149e37970d1cbe4a6182c92d1a95fc
BLAKE2b-256 76991cf5cbe4f07713458d7059f0de8aa958ecb4aa7652f26337c12d1c1f77ef

See more details on using hashes here.

Provenance

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