Posts

Showing posts with the label neural network quiz

Python Quiz 2

 Python Quiz 2 Ques 1:  Given that now=datetime.now() , which call may produce different results on different computers? (a) print(now.strftime("%d")) (b) print(now.strftime("%Y")) (c) print(now.strftime("%M")) (d) print(now.strftime("%c")) Answer: Option(D):  print(now.strftime("%c") Ques 2:  Which code will you use to generate a date and time output in the following format? 13-Mar-2020 16:42:58 (a) from datetime import date          now=date.now()        print(now.strftime("%B-%D-%Y %H:%M:%S")) (b) from datetime  import datetime        now=datetime.now()        print(now.strftime("%d-%b-%Y %h:%m:%S")) (c) from datetime import datetime        now=datetime.now()        print(now.strftime("%d-%b-%Y %H:%M:%S")) (d) from datetime import datetime          print(datetime("%d-%B-%Y %H:%m:%S")) Answer: Option(C...

Supervised Learning Quiz

 Supervised Learning Quiz 1. Regression Modeling Quiz Ques 1: Logistic Regression requires that data meet certain Assumptions Answer: FALSE Feedback Linear regression, not logistic regression requires that the data it's used on meet certain assumptions. It assumes a linear relationship between continuous variables. Ques 2:  What is NOT a typical task in Data Cleaning? Answer: predicting outcomes Ques 3:  What sample of data should you use to assess if your Machine Learning Model has been trained properly? Answer: testing set Feedback Spot on! The testing set is used to first measure how well a model learns from the training set and the validation set is used to further tune model hyperparameters. Ques 4:  Logistic Regression models can predict numerical and categorical outcomes. Answer: TRUE You got it! While linear regression can only be used to predict continuous, numerical outcomes, logistic regression can predict both categorical and numerical responses. Ques 5:...