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

Uploaded CPython 3.14Windows x86-64

skx-0.0.11-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (628.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

skx-0.0.11-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (574.6 kB view details)

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

skx-0.0.11-cp314-cp314-macosx_11_0_arm64.whl (421.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

skx-0.0.11-cp313-cp313-win_amd64.whl (349.6 kB view details)

Uploaded CPython 3.13Windows x86-64

skx-0.0.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (627.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

skx-0.0.11-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (562.6 kB view details)

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

skx-0.0.11-cp313-cp313-macosx_11_0_arm64.whl (417.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

skx-0.0.11-cp312-cp312-win_amd64.whl (353.9 kB view details)

Uploaded CPython 3.12Windows x86-64

skx-0.0.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (628.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

skx-0.0.11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (560.2 kB view details)

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

skx-0.0.11-cp312-cp312-macosx_11_0_arm64.whl (413.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: skx-0.0.11-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 346.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.11-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a5e3576de55bb1c10707bc0c7c49a239bdc85f3b042642ce7196e4814f325b3a
MD5 63f054d14cc829c01cb8a27762deb047
BLAKE2b-256 528144943df011022573fc85fbd27781906ff3b06c555126875b15058631f9fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7b4076f7b7964a43b93ba1924f2f6a32147682152247580e5c2eb4e28e504a39
MD5 55ae6dfb0818c14a58541c9cd4cb2b59
BLAKE2b-256 eed32d7976d1319e3a39aeef0d456323481a99e2e6e91fdbfb74236d2a1ac22f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 446eb2d818530365dbf571e878c772588ca88d26201996b5124ab159bd255046
MD5 9674e015d2538b0bd8738c6658f1f1e7
BLAKE2b-256 4cefd7a146427fc1ad2acbbbb54021d1ae07ccd563ddc87396beb9cf17377d55

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df29984c1357e817ca68d52fe007fec40e3f2f66661aee834f264badb9a139c6
MD5 ca812dd91bb3d7243a8f692342134125
BLAKE2b-256 ce47281d74b38eef65a5bb74112d3d8afbdb7f8d2b61f232d58ae4b077c94f05

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.11-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 349.6 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.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d727ad43c1f0813cc9394b107b6fbe07f50c0ba627460e1335fddcc6cfa9216d
MD5 0675208a52c8f794b03883c43dc79b1b
BLAKE2b-256 e338bc1562e852f2ddaa94ab4688e347a95ac7066945226d124792906696da38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 83bc41fe527601c952c6727d254bd691aee1b0144878d47e6953c4aa999a7eb4
MD5 5656efcfa8270d3129517702cc90913e
BLAKE2b-256 b45bcb8d288485c1b9c2897ed901acfc5145ffd05df6b163c2b01422698d039c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7d7020bfd4f2e7cfd557a7dff6b635294e36fc37edd563ba15be0184fc88701b
MD5 dc31aa64833758be0720daa1f741ba2d
BLAKE2b-256 63a0ecdf75f8b078b617e602eaa2004c8ff61f74d67e6cb21b114ee8139ab6e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29b3a83f3c95bda312f713adc234c4237da6f4594c4f3693196e17d0be382f93
MD5 86001ac86e68e7554f152504dd4252a7
BLAKE2b-256 34951dcf8f9da06b44c052a52ae2011217325c59ef965f5179ade61d86622166

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: skx-0.0.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 353.9 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.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 75b649e9fb006f90367d6c77d3e457dca7a778c9cc7f22906b2cd5963f17e96e
MD5 416bd0256cf39d0832600e6fd4627393
BLAKE2b-256 2572f02b526bd0be3b82bfe0811c105ea7fffe69b3ef606fdd360871253aef56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cef0ee5a055658ff86f10415c35df77ebb657cb6d868322c416b418e7b4d3642
MD5 aa7bf97924c3ed208af133fb2fe41f25
BLAKE2b-256 d74bc6040a26c1fffda7b878c284599f1b83cf661c7a0cb0b5eb3f42093fef47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7f5218035046dcc5114e2fbb5eff144e1b515ca63ac7f8de6697d9b484140d23
MD5 99e0abd021eca0eab753ee196404a9e5
BLAKE2b-256 c7ffe225c385734ec4fec7b4ab93f1fb7582e002f6a9d37d17b0b1d152a3ab6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for skx-0.0.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e28556fcf32b06138708abed8fe03b09f1d9473f72bcfd3e91377618b0220e75
MD5 cdc2947a6e07f7347a4176b960dfcc29
BLAKE2b-256 7cbf0452e19ecc4284b36aed04c98e2bf6e6dc55808963328d3c4813a1abfca7

See more details on using hashes here.

Provenance

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