Randomized the input to random.seed()

This commit is contained in:
Donald Calloway 2025-09-24 09:37:20 -07:00
parent bac5abb664
commit 06d6cbbbac

View File

@ -1,10 +1,11 @@
import numpy as np
import os
import random
os.system('wget https://codefinity-content-media.s3.eu-west-1.amazonaws.com/f9fc718f-c98b-470d-ba78-d84ef16ba45f/section_2/layers.py 2>/dev/null')
from layers import hidden_1, hidden_2, output_layer
# Fix the seed of the "random" library, so it will be easier to test our code
np.random.seed(10)
np.random.seed(random.randint(1,10))
class Perceptron:
def __init__(self, layers):