Logic models to predict continuous outputs based on binary inputs with an application to personalized cancer therapy