Extreme Learning Machine implementation in Python.
dclambert/Python-ELM is ranked 17,170 with 552 stars.
Same-category comparison
dclambert/Python-ELM is ranked 17,170 among these 8 peers; facebookresearch/banmo is ranked 17,172.
Same-category comparison| Name | Rank | Metrics |
|---|
| lee-zq/3DUNet-Pytorch | 17,160 | - Language:
- Python
- Stars:
- 553
- Forks:
- 107
- Description:
- 3DUNet implemented with pytorch.
|
|---|
| taki0112/Self-Attention-GAN-Tensorflow | 17,163 | - Language:
- Python
- Stars:
- 553
- Forks:
- 147
- Description:
- Simple Tensorflow implementation of "Self-Attention Generative Adversarial Networks" (SAGAN).
|
|---|
| uber-research/LaneGCN | 17,164 | - Language:
- Python
- Stars:
- 553
- Forks:
- 132
- Description:
- [ECCV2020 Oral] Learning Lane Graph Representations for Motion Forecasting.
|
|---|
| YudeWang/SEAM | 17,167 | - Language:
- Python
- Stars:
- 552
- Forks:
- 94
- Description:
- Self-supervised Equivariant Attention Mechanism for Weakly Supervised Semantic Segmentation, CVPR 2020 (Oral).
|
|---|
| facebookresearch/banmo | 17,172 | - Language:
- Python
- Stars:
- 552
- Forks:
- 61
- Description:
- BANMo Building Animatable 3D Neural Models from Many Casual Videos.
|
|---|
| ryouchinsa/Rectlabel-support | 17,177 | - Language:
- Jupyter Notebook
- Stars:
- 552
- Forks:
- 72
- Description:
- RectLabel is an offline image annotation tool for object detection and segmentation.
|
|---|
| LatticeX-Foundation/Rosetta | 17,182 | - Language:
- C++
- Stars:
- 551
- Forks:
- 107
- Description:
- A Privacy-Preserving Framework Based on TensorFlow.
|
|---|
| URLab-Sim/UnrealRoboticsLab | 17,185 | - Language:
- C++
- Stars:
- 551
- Forks:
- 67
- Description:
- A high-fidelity, open-source robotics simulator integrating Unreal Engine's photorealistic rendering with MuJoCo's precision physics.
|
|---|
Key parameters and specifications
Key parameters and specifications| Parameter | Value |
|---|
| Language | Python |
|---|
| Category | Model Development |
|---|
| Subcategory | Classical ML |
|---|
| Stars | 552 |
|---|
| Forks | 249 |
|---|
| Contributors | 2 |
|---|
| Created date | 2013-03-04 |
|---|
| Updated date | 2026-08-17 |
|---|
| Stars in 1 day | 0 |
|---|
| Stars in 7 days | 0 |
|---|
| Rank | 17,170 |
|---|
| Previous rank | 16,955 |
|---|
| Rank change | -215 |
|---|
| 7-day stars rank | 15,949 |
|---|
| Previous 7-day stars rank | 15,956 |
|---|
| 7-day stars rank change | 7 |
|---|
| Total stars rank | 17,914 |
|---|
| Previous total stars rank | 17,888 |
|---|
| Total stars rank change | -26 |
|---|
README summary
Two key reasons behind may be: 1) the slow gradient- based learning algorithms are extensively used to train neural networks, and 2) all the parameters of the networks are tuned iteratively by using such learning algorithms. Unlike these traditional implementations, this paper proposes a new learning algorithm called extreme learning machine (ELM) for single- hidden layer feedforward neural networks (SLFNs) which ran- domly chooses the input weights and analytically determines the output weights of SLFNs. In theory, this algorithm tends
to provide the best generalization performance at extremely fast learning speed. The experimental results based on real- world benchmarking function approximation and classification problems including large complex applications show that the new algorithm can produce best generalization performance in some cases and can learn much faster than traditional popular learning algorithms for feedforward neural networks. It's a work in progress, so things can/might/will change. py__ Contains the __RandomLayer__, __MLPRandomLayer__, __RBFRandomLayer__ and __GRBFRandomLayer__ classes. RandomLayer is a transformer that
creates a feature mapping of the inputs that corresponds to a layer of hidden units with randomly generated components. The transformed values are a specified function of input activations that are a weighted combination of dot product (multilayer perceptron) and distance (rbf) activations: _mlp_activation_ is multi-layer perceptron input activation _rbf_activation_ is radial basis function input activation _alpha_ and _rbf_width_ are specified by the user _weights_ and _biases_ are taken from normal distribution of mean 0 and
sd of 1 _centers_ are taken uniformly from the bounding hyperrectangle of the inputs, and (All random components can be supplied by the user by providing entries in the dictionary given as the _user_components_ parameter. ) The input activation is transformed by a transfer function that defaults to numpy. tanh if not specified, but can be any callable that returns an array of the same shape as its argument (the input activation array, of shape [n_samples, n_hidden]). Transfer
functions provided are: sine tanh tribas inv_tribas sigmoid hardlim softlim gaussian multiquadric inv_multiquadric MLPRandomLayer and RBFRandomLayer classes are just wrappers around the RandomLayer class, with the _alpha_ mixing parameter set to 1. 0 respectively (for 100% MLP input activation, or 100% RBF input activation) The RandomLayer, MLPRandomLayer, RBFRandomLayer classes can take a callable user provided transfer function. See the docstrings and the example ipython notebook for details. The GRBFRandomLayer implements the Generalized Radial Basis Function from [[3]]( __elm
. py__ Contains the __ELMRegressor__, __ELMClassifier__, __GenELMRegressor__, and __GenELMClassifier__ classes. GenELMRegressor and GenELMClassifier both take *RandomLayer instances as part of their contructors, and an optional regressor (conforming to the sklearn API)for performing the fit (instead of the default linear fit using the pseudo inverse from scipy. GenELMClassifier is little more than a wrapper around GenELMRegressor that binarizes the target array before performing a regression, then unbinarizes the prediction of the regressor to make its own predictions. The ELMRegressor class is
a wrapper around GenELMRegressor that uses a RandomLayer instance by default and exposes the RandomLayer parameters in the constructor. ELMClassifier
Frequently asked questions
How many stars and forks are recorded?
dclambert/Python-ELM has 552 stars and 249 forks.
What is the repository rank?
dclambert/Python-ELM is ranked 17,170.
What language and category are recorded?
dclambert/Python-ELM has 552 stars, uses Python and belongs to Model Development.
Which repository is closest in rank?
dclambert/Python-ELM is compared with facebookresearch/banmo, ranked 17,172 with 552 stars.
Python-ELM v0.3
---> ARCHIVED March 2021 <---
From the abstract:
It is clear that the learning speed of feedforward neural networks is in general far slower than required and it has been a major bottleneck in their applications for past decades. Two key reasons behind may be: 1) the slow gradient- based learning algorithms are extensively used to train neural networks, and 2) all the parameters of the networks are tuned iteratively by using such learning algorithms. Unlike these traditional implementations, this paper proposes a new learning algorithm called extreme learning machine (ELM) for single- hidden layer feedforward neural networks (SLFNs) which ran- domly chooses the input weights and analytically determines the output weights of SLFNs. In theory, this algorithm tends to provide the best generalization performance at extremely fast learning speed. The experimental results based on real- world benchmarking function approximation and classification problems including large complex applications show that the new algorithm can produce best generalization performance in some cases and can learn much faster than traditional popular learning algorithms for feedforward neural networks.
It's a work in progress, so things can/might/will change.
David C. Lambert
dcl [at] panix [dot] com
Copyright © 2013
License: Simple BSD
Files
random_layer.py
Contains the RandomLayer, MLPRandomLayer, RBFRandomLayer and GRBFRandomLayer classes.
RandomLayer is a transformer that creates a feature mapping of the
inputs that corresponds to a layer of hidden units with randomly
generated components.
The transformed values are a specified function of input activations
that are a weighted combination of dot product (multilayer perceptron)
and distance (rbf) activations:
input_activation = alpha * mlp_activation + (1-alpha) * rbf_activation
mlp_activation(x) = dot(x, weights) + bias
rbf_activation(x) = rbf_width * ||x - center||/radius
mlp_activation is multi-layer perceptron input activation
rbf_activation is radial basis function input activation
alpha and rbf_width are specified by the user
weights and biases are taken from normal distribution of
mean 0 and sd of 1
centers are taken uniformly from the bounding hyperrectangle
of the inputs, and
radius = max(||x-c||)/sqrt(n_centers*2)
(All random components can be supplied by the user by providing entries in the dictionary given as the user_components parameter.)
The input activation is transformed by a transfer function that defaults
to numpy.tanh if not specified, but can be any callable that returns an
array of the same shape as its argument (the input activation array, of
shape [n_samples, n_hidden]).
Transfer functions provided are:
- sine
- tanh
- tribas
- inv_tribas
- sigmoid
- hardlim
- softlim
- gaussian
- multiquadric
- inv_multiquadric
MLPRandomLayer and RBFRandomLayer classes are just wrappers around the RandomLayer class, with the alpha mixing parameter set to 1.0 and 0.0 respectively (for 100% MLP input activation, or 100% RBF input activation)
The RandomLayer, MLPRandomLayer, RBFRandomLayer classes can take a callable user
provided transfer function. See the docstrings and the example ipython
notebook for details.
The GRBFRandomLayer implements the Generalized Radial Basis Function from [3]
Contains the ELMRegressor, ELMClassifier, GenELMRegressor, and GenELMClassifier classes.
GenELMRegressor and GenELMClassifier both take *RandomLayer instances as part of their contructors, and an optional regressor (conforming to the sklearn API)for performing the fit (instead of the default linear fit using the pseudo inverse from scipy.pinv2).
GenELMClassifier is little more than a wrapper around GenELMRegressor that binarizes the target array before performing a regression, then unbinarizes the prediction of the regressor to make its own predictions.
The ELMRegressor class is a wrapper around GenELMRegressor that uses a RandomLayer instance by default and exposes the RandomLayer parameters in the constructor. ELMClassifier is similar for classification.
plot_elm_comparison.py
A small demo (based on scikit-learn's plot_classifier_comparison) that shows the decision functions of a couple of different instantiations of the GenELMClassifier on three different datasets.
elm_notebook.py
An IPython notebook, illustrating several ways to use the *ELM* and *RandomLayer classes.
Requirements
Written using Python 2.7.3, numpy 1.6.1, scipy 0.10.1, scikit-learn 0.13.1 and ipython 0.12.1
References
[1] http://www.extreme-learning-machines.org
[2] G.-B. Huang, Q.-Y. Zhu and C.-K. Siew, "Extreme Learning Machine:
Theory and Applications", Neurocomputing, vol. 70, pp. 489-501,
2006.
[3] Fernandez-Navarro, et al, "MELM-GRBF: a modified version of the
extreme learning machine for generalized radial basis function
neural networks", Neurocomputing 74 (2011), 2502-2510