Skip to content

hann

Hopfield Artificial Neural Networks

v1.2 · Jan 26, 2026 · GPL-3

Description

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.

Downloads

CRAN

201

Last 30 days

21936th

496

Last 90 days

2.2K

Last year

Trend: +55.8% (30d vs prior 30d)

r2u CRAN

38

Last 30 days

117

Last 90 days

380

Last year

Trend: -19.2% (30d vs prior 30d)

autoCRAN

3

Last 7 days

17

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Version History

4 tracked
new 1.2 Mar 10, 2026
updated 1.2 ← 1.1 diff Jan 25, 2026
updated 1.1 ← 1.0 diff Aug 19, 2025
new 1.0 Jul 24, 2025