Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 onStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started