在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dclambert/Python-ELM开源软件地址(OpenSource Url):https://github.com/dclambert/Python-ELM开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):Python-ELM v0.3---> ARCHIVED March 2021 <--- Extreme Learning Machine [1][2] in Python, based on scikit-learn.This is an implementation of theFrom the abstract:
It's a work in progress, so things can/might/will change. David C. Lambert Copyright © 2013 Filesrandom_layer.pyContains 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:
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] elm.pyContains 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.pyA 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.pyAn IPython notebook, illustrating several ways to use the *ELM* and *RandomLayer classes. RequirementsWritten using Python 2.7.3, numpy 1.6.1, scipy 0.10.1, scikit-learn 0.13.1 and ipython 0.12.1 References
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论