How to Train Your Computer