From 2247fdd7ac2ebc1d55d5f16586f510c88c9e1b81 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 11 Sep 2023 17:55:59 -0600 Subject: Add the neural network class --- utils.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 utils.py (limited to 'utils.py') 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) -- cgit v1.2.3