Question 7
You are given a Spark Streaming pipeline that invokes a pre-trained DL model for every image it receives as input and produces the classification result in quick time. The model with the best recall rate from the PyTorch library takes 3.1 seconds on an average to execute on a Quad CPU Spark worker machine. However, the output is expected to be produced consistently within 3 seconds from having received the input. What is the best option to meet the expectations without compromising on false negatives and minimizing the amount of money & effort that is spent further?
Use a different DL model that is faster but has half the recall rate.
Build a custom model that compresses the highest recall rate model just enough to be able to execute within the stipulated time, and measure recall.
Parallelize the DL model code using Divide-and-Conquer so that it runs faster.
Change Spark machine to use GPUs