Question
An online rental video company is interested in creating a model to make movie recommendations to one of its customers, Ms. X. As a consultant
An online rental video company is interested in creating a model to make movie
recommendations to one of its customers, Ms. X. As a consultant to this com-
pany, you are provided with the history of the movies that she accepted or
rejected to watch. She makes her selections solely based on the movie's level of
violence and critic ratings.
1. Train a perceptron that will create a linear boundary decision that will
help the company to make future recommendations to Ms. X. After how
many iterations does the algorithm converge?
2. Upon creating a model, plot the boundary line along with all the data
points and axes clearly marked.
dataset:
LevelOfViolence CriticsRating Watched 0 1 1.2 -1 1 1 3.5 1 2 1 4.2 1 3 2 3.9 1 4 2 2.8 -1 5 3 3.0 -1 6 5 4.5 -1 7 4 1.8 -1 8 1 2.1 -1 9 3 4.8 1 10 5 4.9 1 11 3 1.5 -1 12 3 2.6 -1
Step 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