rb-deeplearning-lib 0.1.5__tar.gz → 0.1.7__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.
Files changed (16) hide show
  1. {rb_deeplearning_lib-0.1.5/src/rb_deeplearning_lib.egg-info → rb_deeplearning_lib-0.1.7}/PKG-INFO +1 -1
  2. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/pyproject.toml +1 -1
  3. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib/neural_net.py +1 -0
  4. rb_deeplearning_lib-0.1.7/src/rb_deeplearning_lib/sequence.py +28 -0
  5. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7/src/rb_deeplearning_lib.egg-info}/PKG-INFO +1 -1
  6. rb_deeplearning_lib-0.1.5/src/rb_deeplearning_lib/sequence.py +0 -23
  7. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/LICENSE +0 -0
  8. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/README.md +0 -0
  9. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/setup.cfg +0 -0
  10. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib/__init__.py +0 -0
  11. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib/autogradient.py +0 -0
  12. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib/optimizer.py +0 -0
  13. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib.egg-info/SOURCES.txt +0 -0
  14. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib.egg-info/dependency_links.txt +0 -0
  15. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib.egg-info/requires.txt +0 -0
  16. {rb_deeplearning_lib-0.1.5 → rb_deeplearning_lib-0.1.7}/src/rb_deeplearning_lib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rb-deeplearning-lib
3
- Version: 0.1.5
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rb-deeplearning-lib"
3
- version = "0.1.5"
3
+ version = "0.1.7"
4
4
  description = "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
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -1,6 +1,7 @@
1
1
  from .autogradient import Values
2
2
  from .sequence import Sequence
3
3
  from .optimizer import Optimizer
4
+ import numpy as np
4
5
 
5
6
  class Layer:
6
7
  def __init__(self, input,out,activ="_",rangeW=(-1,1),rangeB=(-1,1)):
@@ -0,0 +1,28 @@
1
+ class Sequence:
2
+ def __init__(self, arr):
3
+ self.arr = arr
4
+
5
+ def __call__(self, x):
6
+ x_i = x
7
+ for item in self.arr:
8
+ x_i = item(x_i)
9
+ return x_i
10
+
11
+ def params(self):
12
+ all_params = []
13
+ for l in self.arr:
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)
27
+
28
+ return all_params
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rb-deeplearning-lib
3
- Version: 0.1.5
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
@@ -1,23 +0,0 @@
1
- class Sequence:
2
- def __init__(self, arr):
3
- self.arr = arr
4
-
5
- def __call__(self, x):
6
- x_i = x
7
- for item in self.arr:
8
- x_i = item(x_i)
9
- return x_i
10
-
11
- def params(self):
12
- weis = []
13
- biases = []
14
- for l in self.arr:
15
- w, b = l.params()
16
- weis.append(w)
17
- biases.append(b)
18
-
19
- return weis, biases
20
-
21
- def updateParams(self, l_rate):
22
- for l in self.arr:
23
- l.updateParams(l_rate)