Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

What two things make the best buffer system

Answered: 1 week ago