Application: Photo OCR
5 试题
Suppose you are running a sliding window detector to find
text in images. Your input images are 1000x1000 pixels. You
will run your sliding windows detector at two scales, 10x10
and 20x20 (i.e., you will run your classifier on lots of 10x10
patches to decide if they contain text or not; and also on
lots of 20x20 patches), and you will "step" your detector by 2
pixels each time. About how many times will you end up
running your classifier on a single 1000x1000 test set image?
100,000
1,000,000
250,000
500,000
Suppose that you just joined a product team that has been
developing a machine learning application, using m=1,000
training examples. You discover that you have the option of
hiring additional personnel to help collect and label data.
You estimate that you would have to pay each of the labellers
$10 per hour, and that each labeller can label 4 examples per
minute. About how much will it cost to hire labellers to
label 10,000 new training examples?
$400
$600
$10,000
$250
What are the benefits of performing a ceiling analysis? Check all that apply.
A ceiling analysis helps us to decide what is the most promising learning algorithm (e.g., logistic regression vs. a neural network vs. an SVM) to apply to a specific component of a machine learning pipeline.
If we have a low-performing component, the ceiling analysis can tell us if that component has a high bias problem or a high variance problem.
It gives us information about which components, if improved, are most likely to have a significant impact on the performance of the final system.
It can help indicate that certain components of a system might not be worth a significant amount of work improving, because even if it had perfect performance its impact on the overall system may be small.
Suppose you are building an object classifier, that takes as input an image, and recognizes that image as either containing a car ( y=1 ) or not ( y=0 ). For example, here are a positive example and a negative example:
![](https://chinacache-video.courcdn2.org/qKTV9b56EeSVRiIAC2sM-Q_Screen-Shot-2015-02-27-at-4.16.22-AM.png?Expires=1449532800&Signature=hlk8gSC4LaW-8VAFhWNVxO8KGrqZpkTXF6qPZC-ukFGBGVhZSIz2fHb7U9B2GYA5Pbmy3~Zkc769SNE9~ikm2Q9yyr2~YGC9iMuaQgRqlgVY0mAnnZ8YwWhd30vRrmm5kFaTTKaRb0fcfKmqIeq8YL4oLvK7LOeHRCnU3ndid~k_&Key-Pair-Id=APKAJLTNE6QMUY6HBC5A)
After carefully analyzing the performance of your algorithm, you conclude that you need more positive ( y=1 ) training examples. Which of the following might be a good way to get additional positive examples?
Apply translations, distortions, and rotations to the images already in your training set.
Select two car images and average them to make a third example.
Take a few images from your training set, and add random, gaussian noise to every pixel.
Make two copies of each image in the training set; this immediately doubles your training set size.
Suppose you have a PhotoOCR system, where you have the following pipeline:
![](https://chinacache-video.courcdn2.org/5gV29L57EeShsSIACwKbzw_Screen-Shot-2015-02-27-at-4.21.30-AM.png?Expires=1449532800&Signature=B8qql5pFU9Pa5zD8-1P2CSCf23xbU~yg0H11kHUlYwzLm53aJmuTk9A1pMLNA53TVMqiXyKvmCIlMprve75sFnb8GLYGSXy-7-wguoVNKRMxpw07N3Tb-8ktcqED9KCoPwWSC6l7FQas~mmPGKkZ5ys89HNI4WivJgBfixD0iwQ_&Key-Pair-Id=APKAJLTNE6QMUY6HBC5A)
You have decided to perform a ceiling analysis on this system, and find the following:
![](https://chinacache-video.courcdn2.org/82LxZb57EeShsSIACwKbzw_Screen-Shot-2015-02-27-at-4.21.49-AM.png?Expires=1449532800&Signature=RwCNWq5DkdfZr6JmeLlvMo2yDePv5xrYZtAuFDwDe8vroX6PwSrWG6rUGeWus6Rl1UsPoVrqBJg~ifjwXHwoz~ukEYbWIP3OKa6KOc7jgp6xjrr3NXjwm3HMZ2BCr2Zic95dI9t-mHxYhfs~jO~bvEywwhmTyx~7oJ4oRaume6U_&Key-Pair-Id=APKAJLTNE6QMUY6HBC5A)
Which of the following statements are true?
There is a large gain in performance possible in improving the character recognition system.
Performing the ceiling analysis shown here requires that we have ground-truth labels for the text detection, character segmentation and the character recognition systems.
The least promising component to work on is the character recognition system, since it is already obtaining 100% accuracy.
The most promising component to work on is the text detection system, since it has the lowest performance (72%) and thus the biggest potential gain.