evonet 0.1.0.dev21__tar.gz → 0.1.0.dev22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/PKG-INFO +1 -1
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/core.py +13 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet.egg-info/PKG-INFO +1 -1
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/pyproject.toml +1 -1
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/LICENSE +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/README.md +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/__init__.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/activation.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/connection.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/core_mit_plot_simple.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/enums.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/io.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/layer.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/mutation.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/neuron.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/serialization.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/utils.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet/visualize.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet.egg-info/SOURCES.txt +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet.egg-info/dependency_links.txt +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet.egg-info/requires.txt +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/evonet.egg-info/top_level.txt +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/setup.cfg +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/tests/test_activation.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/tests/test_core.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/tests/test_nnet_io_and_forward.py +0 -0
- {evonet-0.1.0.dev21 → evonet-0.1.0.dev22}/tests/test_recurrent_dynamics.py +0 -0
|
@@ -54,6 +54,19 @@ class Nnet:
|
|
|
54
54
|
count += 1
|
|
55
55
|
return count
|
|
56
56
|
|
|
57
|
+
@property
|
|
58
|
+
def num_hidden(self) -> int:
|
|
59
|
+
"""Return the number of hidden neurons."""
|
|
60
|
+
count = 0
|
|
61
|
+
for layer in self.layers:
|
|
62
|
+
for neuron in layer.neurons:
|
|
63
|
+
if (
|
|
64
|
+
neuron.role is not NeuronRole.INPUT
|
|
65
|
+
and neuron.role is not NeuronRole.OUTPUT
|
|
66
|
+
):
|
|
67
|
+
count += 1
|
|
68
|
+
return count
|
|
69
|
+
|
|
57
70
|
@property
|
|
58
71
|
def num_params(self) -> int:
|
|
59
72
|
"""Total parameter count = weights + biases."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|