Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Data science with Python( Dec 5th - Jan 23,2021)|Wajahat

_86365

Member
Hello Wajahat,
What is the expected value of mean_squared_error, in the model build for movie rating prediction. Also, this model should predict at user level right, i mean rating given for a movie by specific type of user(age, occupation, gender). or something else.
 

_85133

New Member
Screenshot of the Webscraping Assignment : To print Head, Title, Hrefs from Simplilearn page
 

Attachments

  • DataScience_Webscrap_Assignment.png
    DataScience_Webscrap_Assignment.png
    57.3 KB · Views: 4
Assignment on Mapper and reducer code.

my_string = 'This is a hadoop and spark session and this is suppose to be the last session of this course. I am more interested inlearning hadoop.'

def mapper(my_string):
return nltk.tokenize.word_tokenize(my_string)

def reducer(my_string):
count =0
for word in my_string:
count+=1

return count

reducer(mapper(my_string))
 
Hi Wajahat Sir,

I am seeing an error while trying to create a Liner Regression model for the MovieLens Project. Please see the screenshot for error.

Can you please help me with this ?
If required i'll attach the My notebook.

Code Snippet:

upload_2021-1-22_15-50-24.png

upload_2021-1-22_15-49-21.png
 
I AM GETTING ERROR IN THE BELOW CODE PLEASE SIR FIND THE ERROR FOR ME.
THANKYOU!

#Plot Major complaint type Heating against location type to check for any pattern
plt.figure(figsize=(3,3))
plt.scatter(grp_data['Complaint Type'],grp_data['Location Type'])
plt.title='Plot Complaint Type Heating Against Location Type'
plt.xlabel='Complaint Type'
plt.ylabel='Location Type'
plt.show()
 
Top