a baby crying and start a lullaby if need be • Feature engineering and model training locally (PC) • Recording, feature engineering and prediction on Raspberry Pi 20 giulbia/baby_cry_detection https://www.youtube.com/watch?v=N-LXrheCIKM
a baby crying and start a lullaby if need be • Feature engineering and model training locally (PC) • Recording, feature engineering and prediction on Raspberry Pi 21 giulbia/baby_cry_detection https://www.youtube.com/watch?v=N-LXrheCIKM It takes about 45 seconds...
P 1. FE → feature engineering 2. P → prediction 3. Maj. vote & 4. Final pred. → final prediction is positive iff at least 3 subsequences have a positive prediction Majority vote Final prediction
P Majority vote Final prediction QUESTIONS 1. Dependencies? 2. How to trigger each step? 3. How to send the answer back to Raspberry Pi? From Storage to??
P Majority vote 1. FE Final prediction ANSWERS BY GOOGLE CLOUD FUNCTIONS • Background function • Trigger type → Cloud Storage ◦ Bucket → parenting-3-recording ◦ Event type → Finalize/Create • Dependencies → requirements.txt • Easy access to Cloud ML Engine API From Storage to Functions
over time ◦ training vs. prediction ◦ it depends on regions ◦ it depends on the machine used [scale tiers] • Simulation [price calculator] ◦ Europe, training job takes 15 minutes, 4 cpu, 15GB ◦ batch prediction takes 36 seconds ◦ it costs $0.08 per month • Until now I paid nothing 37 Let's talk money (ML Engine)
data • Push it further with TensorFlow • Other options for exploration and preprocessing ◦ Cloud Datalab ◦ BigQuery ◦ Cloud Dataproc ◦ Cloud Dataflow ◦ Cloud Dataprep 38