Randomized the input to random.seed()
This commit is contained in:
parent
bac5abb664
commit
06d6cbbbac
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user