hann: Hopfield Artificial Neural Networks

Builds and optimizes Hopfield artificial neural networks (Hopfield, 1982, <doi:10.1073/pnas.79.8.2554>). One-layer and three-layer models are implemented. The energy of the Hopfield network is minimized with formula from Krotov and Hopfield (2016, <doi:10.48550/ARXIV.1606.01164>). Optimization (supervised learning) is done through a gradient-based method. Classification is done with S3 methods predict(). Parallelization with 'OpenMP' is used if available during compilation.

Package details

AuthorEmmanuel Paradis [aut, cre, cph] (ORCID: <https://orcid.org/0000-0003-3092-2199>)
MaintainerEmmanuel Paradis <Emmanuel.Paradis@ird.fr>
LicenseGPL-3
Version1.0
URL https://github.com/emmanuelparadis/hann
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("hann")

Try the hann package in your browser

Any scripts or data that you put into this service are public.

hann documentation built on Aug. 8, 2025, 7:16 p.m.