Skip to main content

HNO-Hammerstein

Hammerstein Neural Operator with Latent Dynamics for Magnetic Hysteresis

License: MIT Python 3.9+

This package implements a Neural Operator based on the classic Hammerstein structure, designed to model non-linear dynamic systems with memory, such as magnetic hysteresis.

Unlike traditional neural networks (DeepONet, FNO), the HNO architecture explicitly separates the static non-linearity (input) from the latent dynamics (memory), ensuring physical interpretability and generalization across different temporal resolutions.


Arquitetura / Architecture

Arquitetura HNO-Hammerstein

O fluxo de dados é:

  1. Não Linearidade Estática (Static Non-linearity): z(t) = N_theta(H(t))
  2. Contexto Global (Global Context): c = E_phi(z(t))
  3. Dinâmica Latente (Latent Dynamics): s(t) = Integrate(f_psi(s, z, c))
  4. Saída (Output): B(t) = G_omega(s(t), z(t))

Instalação / Installation

pip install hno-hammerstein

#Uso Rápido / Quick Start
import torch
from hno_hammerstein import HNOHammerstein

# Instancia a rede / Instantiate the network
model = HNOHammerstein(
    nonlinear_dim=32,
    context_dim=32,
    state_dim=64,
    hidden_dim=64,
    dropout=0.05
)

# Cria uma entrada fictícia / Create a dummy input: (batch=1, Nt=198, 1)
h = torch.randn(1, 198, 1)

# Predição / Prediction
B_pred = model(h)
print(B_pred.shape)  # torch.Size([1, 198, 1])


#Licença / License
Este projeto está sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.
This project is licensed under the MIT License. See the LICENSE file for details.

#Citação / Citation
bibtex
@mastersthesis{freitas2026hno,
  title={Hammerstein Neural Operator (HNO): Um Novo Operador Neural para Modelagem de Histerese Magnética},
  authors={Freitas, Daniel,  Almeida, Luiz}
  school={Universidade Federal do ABC (UFABC)},
  year={2026}
}

Metadata

Release files for hno-hammerstein 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hno-hammerstein 0.1.0
File Size Uploaded Provenance Actions
hno_hammerstein-0.1.0.tar.gz 5.0 kB Without provenance Details for hno_hammerstein-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hno-hammerstein 0.1.0
File Interpreter ABI Platform Actions
hno_hammerstein-0.1.0-py3-none-any.whl Python 3 none any Details for hno_hammerstein-0.1.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / hno_hammerstein-0.1.0.tar.gz

Download URL hno_hammerstein-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a0301705d74461e3d7c51d86217ab19ec3346f912d35c26097a816a19b9bd94
BLAKE2b-256 checksum
How to use checksums
55e4face0938dedc451191b11a6b6b5492f519a8e970fb4ee26c6ce4bcaeb463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / hno_hammerstein-0.1.0-py3-none-any.whl

Download URL hno_hammerstein-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55189abedd05bab51894de355a437ed68827db4b50f7df756d3b3a6643c09bb7
BLAKE2b-256 checksum
How to use checksums
b7bb17a4bf785db34863f335ddc754a0329d2e95083bbe1343231563069bce50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Security for hno-hammerstein 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page