Question: need help in python; subject: artificial neural network. Q2. Test the feedforwardlayer, In the Hamming network, the weight matrix W contains the prototype patterns. In
need help in python; subject: artificial neural network.

Q2. Test the feedforwardlayer, In the Hamming network, the weight matrix W contains the prototype patterns. In the orange and apple classification tasks, the prototype patterns are p0=[111] and pa=[1 1-1]. This means we should initialize W1 as W1=[p0Tp2T]=[111111] The bias in the hamming network is equal to the number of inputs. b1=[33] Test the feedforward layer by passing w and b, given the following p values, and write the output a1 in the table below. [1;0.25each] Help Note: To generate the output for various input values the following can be used W1=n,rrcax([[1,1,1],[1,1,1]])b1=[3,3]a1=feedfarwardlayec[[1,1,1],W1,b1)print(a1) So on
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
