Registry / ai-ml / dynamic-network-architectures

dynamic-network-architectures

JSON →
library0.4.3pypypiunverified

A library for dynamic network architectures, including Deep Belief Networks and other configurable neural network structures. Version 0.4.3 supports Python 3.8+, focuses on flexible network building and training utilities. Release cadence is irregular.

pip install dynamic-network-architectures
INSTALL
IMPORT
SIG · DYNAMIC-NETWORK-AR
D
dynamic-network-architectures
ai-mlpythonv0.4.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DeepBeliefNetwork
✓ from dynamic_network_architectures import DeepBeliefNetwork
✗ from dynamic_network_architectures import DeepBeliefNetwork

Create and train a Deep Belief Network with random data.

from dynamic_network_architectures import DeepBeliefNetwork import torch # Create a simple Deep Belief Network model = DeepBeliefNetwork( layers=[784, 500, 200], learning_rate=0.01, n_epochs=10, batch_size=64 ) # Generate random data (e.g., MNIST-like) data = torch.randn(64, 784) # Train the model model.fit(data) # Generate samples samples = model.generate(n_samples=10) print(samples.shape)
Debug
Known issues
breakingIn version 0.4.0, the 'layers' parameter in DeepBeliefNetwork changed from list of dicts to list of ints. Old code with dict configurations will break.
fix
Update to use simple integers for layer sizes, e.g., layers=[784, 500, 200].
affects: <0.4.0
deprecatedThe 'n_gibbs_steps' argument in DeepBeliefNetwork.generate() is deprecated in 0.4.3 and will be removed in next release. Use 'chain_length' instead.
fix
Replace n_gibbs_steps with chain_length: model.generate(n_samples, chain_length=10).
affects: >=0.4.0
gotchaTraining with mini-batches requires data to be a torch.Tensor. Passing bare numpy arrays to fit() will raise a TypeError.
fix
Convert numpy arrays to torch tensors before calling fit().
affects: all
Upgrade
Version history
0.4.3latest on PyPI · released Jan 23, 2026
Audit
Dependencies
torchrequiredCore dependency for tensor operations and neural network building blocks
numpyrequiredUsed for numerical operations and data handling
Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
2
Amazon
1
Resources
dynamic-network-architectures — pip install dynamic-network-architectures · libregistry