Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help in python; subject: Artificial Neural Network. example from the last lab; Q1. Develop a feedforward layer. The feedforward layer is similar to the
need help in python; subject: Artificial Neural Network.
example from the last lab;
Q1. Develop a feedforward layer. The feedforward layer is similar to the multiple input neuron you implemented in the last lab. It takes as an input a column vector p, weight matrix w, bias vector b and produces a summation output n which when passed to the transfer function (purelin) generates the output a. Create a function titled feedforwardlayer and pass the parameters i.e. values of ' p ', ' w ', ' b ' and return the output 'a1' from that function. [0.5 marks] Help Note: import numpy as np \#Define the transfer function def purelin (z) : return z \#Define the feedforward function def feedforwardlayer (p,w,b) : n=(npdot(w,p)+b) a1=purelin (n) return a1 Q2. Develop a multiple input neuron. Assuming that it can take as input a column vector p, weight matrix w, bias vector b and produces a summation output n which when passed to the transfer function f generates the output a. [2+1+0.5=3.5 marks] function neuron at x000001 A0ED81E5COStep 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