Skip to main content

Fast ELM Kernel

This package provides fast calculation of an Extreme Learning Machine kernel. ELM kernels are parameter free gaussian kernels.

Usage

pip install fast-elm-kernel

from fast_elm_kernel import elm_kernel_vec, elm_kernel
import numpy as np

# Note that for vector operations elm_kernel_vec is prefered and faster
X = np.array([
  [17, 24, 1, 8, 15],
  [23, 5, 7, 14, 16],
  [4, 6, 13, 20, 22],
  [10, 12, 19, 21, 3],
  [11, 18, 25, 2, 9]
])

print(elm_kernel(X, X))

print(elm_kernel_vec(np.array([1, 2, 3]), np.array([100, 0.5, 0.3])))

LICENSE

MIT License

Copyright (c) [2022] [Moritz Heusinger]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release files for fast-elm-kernel 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-elm-kernel 1.2
File Size Uploaded
fast_elm_kernel-1.2.tar.gz 2.3 kB Details

Release files / fast_elm_kernel-1.2.tar.gz

Download URL fast_elm_kernel-1.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cc6c45b3469c4564179c20efbc8fb704eba043e6ae2494a616f6fc4bd038b997
BLAKE2b-256 checksum
How to use checksums
18b9e35d129d4543130347251dfd29f42622f1bbca93abd44c9c89f87ede0a3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/3.7.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.3

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page