🔥 3-day streak
Professional Machine Learning Engineer103 / 166
Question 103 of 166

A data science team has prototyped a deep neural network in TensorFlow/Keras for a tabular churn prediction problem. Training on a single n1-standard-16 CPU instance takes 14 hours per run, which is blocking their experimentation. The model uses dense layers with large matrix multiplications, a batch size of 4096, and a dataset of 20 million rows stored as sharded TFRecords in Cloud Storage. Profiling shows the CPU is compute-bound (near 100% utilization) during the training step, not I/O bound. What is the most effective change to reduce per-run training time while minimizing code changes?

Reviewed for accuracy · Report an issueNext question