Programming Questions This is the first programming project for the course. The details can be found in the attached PDF file, and I have included additional files you will need. You are not required to use the two Python scripts I provided — feel free to write your own scripts from scratch. You will need the CSV data file, however, since it contains all the input data you will need to use. I’ve allotted 2 weeks for the assignment, but extensions are possible should you need one. Please do not hesitate to email me if you have any questions. class Perceptron(object):
# Create a new Perceptron
#
# Params: bias – arbitrarily chosen value that affects the overall output
# regardless of the inputs
#
# synaptic_weights – list of initial synaptic weights for this Perceptron
def __init__(self, bias, synaptic_weights):
self.bias = bias
self.synaptic_weights = synaptic_weights
# Activation function
# Quantizes the induced local field
#
# Params: z – the value of the indiced local field
#
# Returns: an integer that corresponds to one of the two possible output values (usually 0 or 1)
def activation_function(self, z):
# Compute and return the weighted sum of all inputs (not including bias)
#
# Params: inputs – a single input vector (which may contain multiple individual inputs)
#
# Returns: a float value equal to the sum of each input multiplied by its
# corresponding synaptic weight
def weighted_sum_inputs(self, inputs):
# Compute the induced local field (the weighted sum of the inputs + the bias)
#
# Params: inputs – a single input vector (which may contain multiple individual inputs)
#
# Returns: the sum of the weighted inputs adjusted by the bias
def induced_local_field(self, inputs):
# Predict the output for the specified input vector
#
# Params: input_vector – a vector or row containing a collection of individual inputs
#
# Returns: an integer value representing the final output, which must be one of the two
# possible output values (usually 0 or 1)
def predict(self, input_vector):
# Train this Perceptron
#
# Params: training_set – a collection of input vectors that represents a subset of the entire dataset
# learning_rate_parameter – the amount by which to adjust the synaptic weights following an
# incorrect prediction
# number_of_epochs – the number of times the entire training set is processed by the perceptron
#
# Returns: no return value
def train(self, training_set, learning_rate_parameter, number_of_epochs):
# Test this Perceptron
# Params: test_set – the set of input vectors to be used to test the perceptron after it has been trained
#
# Returns: a collection or list containing the actual output (i.e., prediction) for each input vector
def test(self, test_set):
Why Choose Us
Top quality papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional academic writers
We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.
Free revisions
If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.
On-time delivery
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & confidential
We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.
Admissions
Admission help & business writing
You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.
Reviews
Editing your paper
Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.
Reviews
Revising your paper
Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers