diff options
author | HombreLaser <sebastian-440@live.com> | 2023-09-11 17:55:59 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-09-11 17:55:59 -0600 |
commit | 2247fdd7ac2ebc1d55d5f16586f510c88c9e1b81 (patch) | |
tree | e770d435784362465205a0c8c9bf7d5784e6d1b2 /utils.py | |
parent | 41cf8074bd145fdd8f066b7db52c92dec6cb4fa2 (diff) |
Add the neural network class
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.py b/utils.py new file mode 100644 index 0000000..d068023 --- /dev/null +++ b/utils.py @@ -0,0 +1,6 @@ +import numpy +from random import random + +def random_array(rows: int, columns: int): + random_matrix = [[random() for x in range(rows)] for y in range(columns)] + return numpy.asarray(random_matrix) |