-1
Hello I’m having a doubt about going through the input and data weight without using the numpy.
#AND
entrada = [[0,0],[0,1],[1,0],[1,1]]
peso = [0.0,0.0]
The way I figure it is : inada1 x weight + inada2 x weight = 0
on lp:
0 * 0.0 + 0 * 0.0 = 0.0
A loop to scroll through the list and another loop to sublists.
exemplo loop usado :
for a in range(len(entrada)):
calc = entrada[a][0] * peso + entrada[a][1] * peso
until then the result is desired but if there are more than 2 entries as could be the loop without needing Calc = input[a][0] * weight + input[a][1] * weight + input[a][2] * weight
Instead of specifying the position allocate directly, I try to do multiplication and adding with another multiplication.
in syntax is multiply each list and add.
Thanks for the help. I know numpy is very good for rna, but I am looking for a solution that is not external lib, but thanks for the reply.
– stack.cardoso