Skip to main content

Python Package for Neural Network Entropy (NNetEn) calculation

Project description

DOI PyPI - Downloads PyPI

Neural Network Entropy (NNetEn)

Entropy measures are effective features for time series classification problems. Traditional entropy measures, such as Shannon entropy, use probability distribution function. However, for the effective separation of time series, new entropy estimation methods are required to characterize the chaotic dynamic of the system. Our concept of Neural Network Entropy (NNetEn) is based on the classification of special datasets (MNIST-10 and SARS-CoV-2-RBV1) in relation to the entropy of the time series recorded in the reservoir of the LogNNet neural network. NNetEn estimates the chaotic dynamics of time series in an original way. Based on the NNetEn algorithm, we propose two new classification metrics: R2 Efficiency and Pearson Efficiency.

Citing the Work

Link to article

Velichko, A., Belyaev, M., Izotov, Y., Murugappan, M., & Heidari, H. (2023). 
Neural Network Entropy (NNetEn): Entropy-based EEG signal and chaotic time series classification, Python package for NNetEn calculation. 
Algorithms, 16(5), 255. doi:10.3390/a16050255

Installation

Installation is done from pypi using the following command

pip install NNetEn

To update installed package to their latest versions, use the --upgrade option with pip install

pip install --upgrade NNetEn

Usage

Command to create the NNetEn_entropy model

 from NNetEn import NNetEn_entropy

 NNetEn = NNetEn_entropy(database='D1', mu=1)

Arguments:

  • database: (default = D1) Select dataset (D1: MNIST, D2 :SARS-CoV-2-RBV1)
  • mu: (default = 1) Usage fraction of the selected database (0.01 .. 1).

Output: The LogNNet neural network is operated using normalized training and test sets contained in the NNetEn_entropy class

Command to calculation the NNetEn parameter

NNetEn.calculation(time_series, epoch=20, method=3, metric='Acc', log=False)

Arguments:

  • time_series: Input data with a time series in numpy array format.
  • epoch: (default = 20) The number of training epochs for the LogNNet neural network, with a number greater than 0.
  • method: (default = 3) One of 6 methods for forming a reservoir matrix from the time series M1 ... M6.
  • metric: (default = 'Acc') 'Acc' - accuracy metric, 'R2E' - R2 Efficiency metric, 'PE' - Pearson Efficiency metric.
  • log: (default = False) Parameter for logging the main data used in the calculation. Recording is done in log.txt file.

Output: Entropy value NNetEn.

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

NNetEn-1.0.8.tar.gz (11.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NNetEn-1.0.8-py3-none-any.whl (12.3 MB view details)

Uploaded Python 3

File details

Details for the file NNetEn-1.0.8.tar.gz.

File metadata

  • Download URL: NNetEn-1.0.8.tar.gz
  • Upload date:
  • Size: 11.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for NNetEn-1.0.8.tar.gz
Algorithm Hash digest
SHA256 762a2557ed45f73979abf28c7d5c68c2b091874ad6d69fa9e7b761ca16f6e7f7
MD5 6cab86ff17e81dfa45e5b31876fcde65
BLAKE2b-256 aefc7786b41683d6d768147233033ff8903c78b87f80123d7c2040bb136f545c

See more details on using hashes here.

File details

Details for the file NNetEn-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: NNetEn-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 12.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for NNetEn-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b22ba3b7d9b7f42586538d6932ce734b967131c55ac1985ce45d32a6bbec66
MD5 0f497b42fa6c909a9b0819f6a4097194
BLAKE2b-256 49f3760a3f6a65d5800a9e1987678f1cd79f5450477eab13aa64d882d91856ce

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