rb-deeplearning-lib 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl
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.
- rb_deeplearning_lib/neural_net.py +1 -0
- rb_deeplearning_lib/sequence.py +15 -10
- {rb_deeplearning_lib-0.1.5.dist-info → rb_deeplearning_lib-0.1.7.dist-info}/METADATA +1 -1
- rb_deeplearning_lib-0.1.7.dist-info/RECORD +10 -0
- rb_deeplearning_lib-0.1.5.dist-info/RECORD +0 -10
- {rb_deeplearning_lib-0.1.5.dist-info → rb_deeplearning_lib-0.1.7.dist-info}/WHEEL +0 -0
- {rb_deeplearning_lib-0.1.5.dist-info → rb_deeplearning_lib-0.1.7.dist-info}/licenses/LICENSE +0 -0
- {rb_deeplearning_lib-0.1.5.dist-info → rb_deeplearning_lib-0.1.7.dist-info}/top_level.txt +0 -0
rb_deeplearning_lib/sequence.py
CHANGED
|
@@ -9,15 +9,20 @@ class Sequence:
|
|
|
9
9
|
return x_i
|
|
10
10
|
|
|
11
11
|
def params(self):
|
|
12
|
-
|
|
13
|
-
biases = []
|
|
12
|
+
all_params = []
|
|
14
13
|
for l in self.arr:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
# Check if the item has a params method (e.g., Layer or Dense)
|
|
15
|
+
if hasattr(l, 'params'):
|
|
16
|
+
# layer_params should return weights and biases, which can be individual Values or lists of Values
|
|
17
|
+
layer_params = l.params()
|
|
18
|
+
# Ensure layer_params is iterable (e.g., a tuple of (weights, biases))
|
|
19
|
+
if isinstance(layer_params, tuple) or isinstance(layer_params, list):
|
|
20
|
+
for p_group in layer_params:
|
|
21
|
+
# If p_group is a list (e.g., from Dense containing multiple layers),
|
|
22
|
+
# extend with its elements, otherwise append the Value object itself.
|
|
23
|
+
if isinstance(p_group, list):
|
|
24
|
+
all_params.extend(p_group)
|
|
25
|
+
else:
|
|
26
|
+
all_params.append(p_group)
|
|
18
27
|
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
def updateParams(self, l_rate):
|
|
22
|
-
for l in self.arr:
|
|
23
|
-
l.updateParams(l_rate)
|
|
28
|
+
return all_params
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rb-deeplearning-lib
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
4
4
|
Summary: This is a machine learning--more specifically deep learning--library from my independent study on deep learning. This library is both a result of my learning and a tool for AI development.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/rylan-berry/DeepLearningIndependentStudy/tree/main/deeplearning_package
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
rb_deeplearning_lib/__init__.py,sha256=zl-5oyUBHY6oi2C0Km1X-EzIJalQX76mnRDNATRmH-8,104
|
|
2
|
+
rb_deeplearning_lib/autogradient.py,sha256=woXGKi1EZ1QobvRbPMtj4WQqdkOCr7Xk_KeG8WE1d6k,9388
|
|
3
|
+
rb_deeplearning_lib/neural_net.py,sha256=H7WSj9dyaH_T_HEnzLs9lSpkN3RDXAxmoCHaS0JHXiU,6561
|
|
4
|
+
rb_deeplearning_lib/optimizer.py,sha256=zZAWONK8i9lb_zqHyF89i4vSSB3xq_w8maaQeiGa0Ok,2703
|
|
5
|
+
rb_deeplearning_lib/sequence.py,sha256=Y0X_oadarvF4dgFUUDEcWKqrcZ-Wr4j7CHZnSCjXuCc,1023
|
|
6
|
+
rb_deeplearning_lib-0.1.7.dist-info/licenses/LICENSE,sha256=RGN7cN89q7JPnZj-z1KSZT9M3zcJPwjzb-gEOt6SCCA,1069
|
|
7
|
+
rb_deeplearning_lib-0.1.7.dist-info/METADATA,sha256=apxw7MlQ3lFvZtnPI6z1dFDC6GqIKS6tbzUgHh3whcg,2286
|
|
8
|
+
rb_deeplearning_lib-0.1.7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
+
rb_deeplearning_lib-0.1.7.dist-info/top_level.txt,sha256=oK1ClPmIXDzAbwPHl69BE88PFjpsYta_a5vNEa5WJoA,20
|
|
10
|
+
rb_deeplearning_lib-0.1.7.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
rb_deeplearning_lib/__init__.py,sha256=zl-5oyUBHY6oi2C0Km1X-EzIJalQX76mnRDNATRmH-8,104
|
|
2
|
-
rb_deeplearning_lib/autogradient.py,sha256=woXGKi1EZ1QobvRbPMtj4WQqdkOCr7Xk_KeG8WE1d6k,9388
|
|
3
|
-
rb_deeplearning_lib/neural_net.py,sha256=6yPB1hOwf0VgFySgBRndEn_QemJJ8q8gmp5UnAKhMmg,6542
|
|
4
|
-
rb_deeplearning_lib/optimizer.py,sha256=zZAWONK8i9lb_zqHyF89i4vSSB3xq_w8maaQeiGa0Ok,2703
|
|
5
|
-
rb_deeplearning_lib/sequence.py,sha256=As8FiHVrcN2w0xXV8Vt_eHhNh1vDWDM3oIfrZMUkZ5g,417
|
|
6
|
-
rb_deeplearning_lib-0.1.5.dist-info/licenses/LICENSE,sha256=RGN7cN89q7JPnZj-z1KSZT9M3zcJPwjzb-gEOt6SCCA,1069
|
|
7
|
-
rb_deeplearning_lib-0.1.5.dist-info/METADATA,sha256=TxLFtzUk8alFg_4jfKrqzYy-I04KCQW6kRPjpOaWqFE,2286
|
|
8
|
-
rb_deeplearning_lib-0.1.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
-
rb_deeplearning_lib-0.1.5.dist-info/top_level.txt,sha256=oK1ClPmIXDzAbwPHl69BE88PFjpsYta_a5vNEa5WJoA,20
|
|
10
|
-
rb_deeplearning_lib-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
{rb_deeplearning_lib-0.1.5.dist-info → rb_deeplearning_lib-0.1.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|