Question

please chooose all corrct answers to the question( it could be more than one corrct answers):-...

please chooose all corrct answers to the question( it could be more than one corrct answers):-


Q1) What are the best practices for building out good unit tests?
- You do not need an assert statement for each edge case.
- Write a test function to check for implementation given all parameters.
- Have multiple assert statements to test for all edge cases.
- Think about all edge cases before you write the function.
- Run a test function to see if your function works in all edge cases.


Q2) Which one of the following statements is INCORRECT?
- In regression models, input and output variables have numerical values.
- When fitting the line, we are trying to maximize the distance of each point to the line.
- We can make predictions if input values are given and the equation of the line is known.
- Although it is called a linear regression model, any curve can be used as long as it can fit the data well.


Q3) "The following descriptions best describe what: 1. Value that has to be assigned manually. 2. The K value in K-nearest-neighbore is an example of this. 3. Value is set before the training."
- Model Parameter
- Model hyperparameter
- Significance
- Centroid


Q4) Which of the following describes code that is CLEAN?
- Simple
- Readable
- Vague
- Concise
- Repetitive

Q5)What are some useful metrics to evaluate a GAN’s performance?
- Precision
- Discriminator and generator loss
- Recall
- Softmax

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) What are the best practices for building out good unit tests?

A: - Write a test function to check for implementation given all parameters.

   - Have multiple assert statements to test for all edge cases.

   - Think about all edge cases before you write the function.

   - Run a test function to see if your function works in all edge cases.

2) Which one of the following statements is INCORRECT?

A: When fitting the line, we are trying to maximize the distance of each point to the line.

   Explanation : Because generally we try to minimize to distance between each point in regression.

               And all other options are true i.e. in regression we have only numerical input and output, if input values are given and the equation of the line is known, any curve can be used as long as it can fit the data well.

3) "The following descriptions best describe what: 1. Value that has to be assigned manually. 2. The K value in K-nearest-neighbore is an example of this. 3. Value is set before the training."

A: Model HyperParameter

Explanation : K in KNN is a hyperparameter that you, as a designer, must pick in order to get the best possible fit for the data set. Intuitively, you can think of K as controlling the shape of the decision boundary we talked about earlier.

4) Which of the following describes code that is CLEAN?

A: Simple , Readable , Concise (giving lot of information in few lines)

   Explanation : Because we don’t want our code to be long and complex which repetitive and vogue (unclear)

5) What are some useful metrics to evaluate a GAN’s performance?

A: Precision , Discriminator and generator loss , Recall

   Explanation : Softmax is not a metric to evaluate GAN performance whereas Annealed Importance Sampling , FID , PRECISION and RECALL , Geometry score , discriminator are metrics to evaluate GAN performance.

Add a comment
Know the answer?
Add Answer to:
please chooose all corrct answers to the question( it could be more than one corrct answers):-...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need to answer these test questions Choose all of the following which are benefits of...

    I need to answer these test questions Choose all of the following which are benefits of using meaningful names in writing clean code. Always use abbreviations to keep things short Clearly differentiate names Make as similar as possible Be descriptive and imply type Use descriptive names but don't include details about implementation Is __init_. a magic method? TRUE FALSE True or False: Functions should bring multiple actions together so they are more efficiently run. TRUE FALSE What are some considerations...

  • Choose all that correct ( could be more than one answer):- Q1) Which of the following...

    Choose all that correct ( could be more than one answer):- Q1) Which of the following best describes Deep Learning? - Deep learning is a state of the art process for modeling predictive tasks of extraordinary high dimensionality. - Deep learning uses the Neural Network Algorithm to backpropogate across its Q2) Which of these is a hyperparameter? - Loss - Learning rate - Convergence - Architecture Q3) The following descriptions best describe what: 1. Value outputed from the training process....

  • Performance Metrics: Which of the following are terms used for performance metrics a. Specificity & Precision...

    Performance Metrics: Which of the following are terms used for performance metrics a. Specificity & Precision b. Precision & Recall c. Recall & Sensitivity d. band e All of the above 9. Performance Metrics: When looking at the ROC/AUC curve, what are the values being compared represented on the x-axis and y-axis? a. False Positive Rate and True Positive Rate b. Precision and True Positive Rate c. False Positive Rate and Precision d. True Positive Rate and Specificity e. None...

  • Please answer all parts, use question #2 to solve #3. 2. For a random sample of...

    Please answer all parts, use question #2 to solve #3. 2. For a random sample of size n = 25, the correlation is r = 0.31 for normal random variables X and Y. Answer the questions for the hypothesis test. Use a level of significance of a = 0.08. Ho: p= 0 H1: p0 a. The critical value is Z = b. The test statistic is Z = C. The p-value is d. The hypothesis (should, should not) be rejected....

  • Please answer this question using python programming only and provide a screen short for this code....

    Please answer this question using python programming only and provide a screen short for this code. Homework 3 - Multiples not less than a number Question 1 (out of 3) This homework is a SOLO assignment. While generally I encourage you to help one another to learn the material, you may only submit code that you have composed and that you understand. Use this template to write a Python 3 program that calculates the nearest multiple of a number that...

  • Could someone please help me write this in Python? If time allows, it you could include...

    Could someone please help me write this in Python? If time allows, it you could include comments for your logic that would be of great help. This problem involves writing a program to analyze historical win-loss data for a single season of Division I NCAA women's basketball teams and compute from this the win ratio for each team as well as the conference(s) with the highest average win ratio. Background Whether it's football, basketball, lacrosse, or any other number of...

  • PLEASE ANSWER ALL parts . IF YOU CANT ANSWER ALL, KINDLY ANSWER PART (E) AND PART(F)...

    PLEASE ANSWER ALL parts . IF YOU CANT ANSWER ALL, KINDLY ANSWER PART (E) AND PART(F) FOR PART (E) THE REGRESSION MODEL IS ALSO GIVE AT THE END. REGRESSION MODEL: We will be returning to the mtcars dataset, last seen in assignment 4. The dataset mtcars is built into R. It was extracted from the 1974 Motor Trend US magazine, and comcaprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973-74 models). You can find...

  • If can't complete it all, I can post more questions just let me know!! There is an old saying in golf: "You drive for show and you putt for dough. "The point is that good putting is more...

    If can't complete it all, I can post more questions just let me know!! There is an old saying in golf: "You drive for show and you putt for dough. "The point is that good putting is more important than long driving for shooting low scores and hence winning money. To see if this is the case, data on the top 69 money winners on the PGA tour in 1993 are examined. The average number of putts per hole for...

  • Please answer for all the subparts, explaination is not necessary, only answers will suffice. 1) How...

    Please answer for all the subparts, explaination is not necessary, only answers will suffice. 1) How many startDocument events and how many startElement events will be fired when the following XML SAX parser? <a> <b q='yyy'>zzz</b> <c>nnn</c> <d>ppp</d> </a> a) O startDocument events and 4 startElement events b) O startDocment events and 3 startElement events c) 1 startDocment events and 4 start Element events d) 1 startDocment events and 3 startElement events 2) The bracket in the following is an...

  • import java.util.ArrayList; import java.util.Scanner; public class AssertDemo {    /* Work on this in a piecewise...

    import java.util.ArrayList; import java.util.Scanner; public class AssertDemo {    /* Work on this in a piecewise fashion by uncommenting and focusing on one section at a time    * in isolation rather than running everything at once.    */    public static void main(String[] args) {        assert(true);        assert(false);               warmUpAsserts();               assertWithPrimitives();               assertWithObjects();               homeworkRelatedAsserts();    }    /*    * Just a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT