Skip to main content

Extreme Learning Machine kernels for ML

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_elm_kernel-1.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file fast_elm_kernel-1.2.tar.gz.

File metadata

  • Download URL: fast_elm_kernel-1.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for fast_elm_kernel-1.2.tar.gz
Algorithm Hash digest
SHA256 cc6c45b3469c4564179c20efbc8fb704eba043e6ae2494a616f6fc4bd038b997
MD5 c914087e7bfcf19e5f0520bd053fbf3f
BLAKE2b-256 18b9e35d129d4543130347251dfd29f42622f1bbca93abd44c9c89f87ede0a3b

See more details on using hashes here.

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