【正确】Based on the size of each tumor, determine if each tumor is malignant (cancerous) or not.
Based on a patient's blood pressure, determine how much blood pressure medication (a dosage measured in milligrams) the patient should be prescribed.
Based on a patient's age and blood pressure, determine how much blood pressure medication (measured in milligrams) the patient should be prescribed.
【解释】This task predicts one of two classes, malignant or not malignant.
g(z) is near negative one (-1)
g(z) will be near 0.5
g(z) will be near zero (0)
【正确】g(z) is near one (1)
【正确】Predict it is a cat if g(z) >= 0.5
Predict it is a cat if g(z) < 0.5
Predict it is a cat if g(z) = 0.5
Predict it is a cat if g(z) < 0.7
【解释】Think of g(z) as the probability that the photo is of a cat. When this number is at or above the threshold of 0.5, predict that it is a cat
【正确】False
True
【解释】The decision boundary can also be non-linear, as described in the lectures.
【正确】Loss
Cost
Both Loss and Cost
Neither Loss nor Cost
【解释】In these lectures, loss is calculated on a single training example. It is worth noting that this definition is not universal. Other lecture series may have a different definition.
The update steps are identical to the update steps for linear regression.
【正确】The update steps look like the update steps for linear regression, but the definition of f_{\vec{w},b}(\mathbf{x}^{(i)})is different.
【解释】For logistic regression, f_{\vec{w},b}(\mathbf{x}^{(i)})is the sigmoid function instead of a straight line.
【正确】Collect more training data
【解释】If the model trains on more data, it may generalize better to new examples.
【正确】Apply regularization
【解释】Regularization is used to reduce overfitting.
Remove a random set of training examples
【正确】Select a subset of the more relevant features.
【解释】If the model trains on the more relevant features, and not on the less useful features, it may generalize better to new examples.
The model has high variance (overfit). Thus, adding data is, by itself, unlikely to help much.
【正确】The model has high variance (overfit). Thus, adding data is likely to help
The model has high bias (underfit). Thus, adding data is, by itself, unlikely to help much.
The model has high bias (underfit). Thus, adding data is likely to help
【解释】The model has high variance (it overfits the training data). Adding data (more training examples) can help.
【正确】This is will reduce the size of the parameters w1,w2,..., wn
This will increase the size of the parameters w1,w2,..., wn
【解释】Regularization reduces overfitting by reducing the size of the parameters w1,w2,...wn